Takuya ASADA
80242ff443
dist: re-enable clocksource=tsc on AMI
...
clocksource=tsc on boot parameter mistakenly dropped on b3c85aea89 , need to re-enable.
[ penberg: Manual backport of commit 050fb911d5 to 1.0. ]
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
Message-Id: <1459180643-4389-1-git-send-email-syuu@scylladb.com >
2016-03-29 09:56:10 +03:00
Avi Kivity
8422a42381
dist: ami: fix AMI_OPT receiving no value
...
We assign AMI=0 and AMI_OPT=1, so in the true case, AMI_OPT has no value,
and a later compare fails.
(cherry picked from commit 077c0d1022 )
2016-03-26 21:17:49 +03:00
Shlomi Livne
8e78cbfc2d
fix a collision betwen --ami command line param and env
...
sysconfig scylla-server includes an AMI, the script also used an AMI
variable fix this by renaming the script variable
6a18634f9f introduced this issue since it
started imported the sysconfig scylla-server
Signed-off-by: Shlomi Livne <shlomi@scylladb.com >
Message-Id: <0bc472bb885db2f43702907e3e40d871f1385972.1458767984.git.shlomi@scylladb.com >
(cherry picked from commit d3a91e737b )
2016-03-24 08:18:45 +02:00
Shlomi Livne
c6c176b1be
scylla_io_setup import scylla-server env args
...
scylla_io_seup requires the scylla-server env to be setup to run
correctly. previously scylla_io_setup was encapsulated in
scylla-io.service that assured this.
extracting CPUSET,SMP from SCYLLA_ARGS as CPUSET is needed for invoking
io_tune
Signed-off-by: Shlomi Livne <shlomi@scylladb.com >
Message-Id: <d49af9cb54ae327c38e451ff76fe0322e64a5f00.1458747527.git.shlomi@scylladb.com >
(cherry picked from commit 6a18634f9f )
2016-03-23 17:55:33 +02:00
Shlomi Livne
9795edbe04
dist/ami: Use the actual number of disks instead of AWS meta service
...
We have seen in some cases that when using the boto api to start
instances the aws metadata service
http://169.254.169.254/latest/meta-data/block-device-mapping/ returns
incorrect number of disks - workaround that by checking the actual
number of disks using lsblk
Adding a validation at the end verifying that after all computations the
NR_IO_QUEUES will not be greater then the number of shards (we had an
issue with i2.8x)
Fixes : #1062
Signed-off-by: Shlomi Livne <shlomi@scylladb.com >
Message-Id: <54c51cd94dd30577a3fe23aef3ce916c01e05504.1458721659.git.shlomi@scylladb.com >
(cherry picked from commit 4ecc37111f )
2016-03-23 11:22:25 +02:00
Takuya ASADA
0396a94eaf
dist: allow more requests for i2 instances
...
i2 instances has better performance than others, so allow more requests.
Fixes #921
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
Message-Id: <1458251067-1533-1-git-send-email-syuu@scylladb.com >
(cherry picked from commit 769204d41e )
2016-03-23 11:22:25 +02:00
Takuya ASADA
0ade2894f7
dist: stop using '-p' option on lsblk since Ubuntu doesn't supported it
...
On scylla_setup interactive mode we are using lsblk to list up candidate
block devices for RAID, and -p option is to print full device paths.
Since Ubuntu 14.04LTS version of lsblk doesn't supported this option, we
need to use non-full path name and complete paths before passes it to
scylla_raid_setup.
Fixes #1030
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
Message-Id: <1458325411-9870-1-git-send-email-syuu@scylladb.com >
(cherry picked from commit 6edd909b00 )
2016-03-23 09:16:04 +02:00
Takuya ASADA
1f07468195
dist: prevent to show up dialog on apt-get in scylla_raid_setup
...
"apt-get -y install mdadm" shows up a dialog to select install mode of postfix, this will block scylla-ami-setup.service forever since it is running as background task, we need to prevent it.
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
(cherry picked from commit 0c83b34d0c )
2016-03-23 09:14:49 +02:00
Takuya ASADA
71446edc97
dist: on scylla_io_setup, SMP and CPUSET should be empty when the parameter not present
...
Fixes #1060
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
Message-Id: <1458659928-2050-1-git-send-email-syuu@scylladb.com >
(cherry picked from commit dac2bc3055 )
2016-03-23 09:06:00 +02:00
Takuya ASADA
c1d8a62b5b
dist: remove scylla-io-setup.service and make it standalone script
...
(cherry picked from commit 9889712d43 )
2016-03-23 09:06:00 +02:00
Takuya ASADA
a3baef6b45
dist: on scylla_io_setup print out message both for stdout and syslog
...
(cherry picked from commit 2cedab07f2 )
2016-03-23 09:06:00 +02:00
Takuya ASADA
feaba177e2
dist: introduce dev-mode.conf and scylla_dev_mode_setup
...
(cherry picked from commit 83112551bb )
2016-03-23 09:06:00 +02:00
Takuya ASADA
ac80445bd9
dist: enable collectd on scylla_setup by default, to make scyllatop usable
...
Fixes #1037
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
Message-Id: <1458324769-9152-1-git-send-email-syuu@scylladb.com >
(cherry picked from commit 6b2a8a2f70 )
2016-03-22 15:16:54 +02:00
Takuya ASADA
19ed269cc7
dist: follow sysconfig setting when counting number of cpus on scylla_io_setup
...
When NR_CPU >= 8, we disabled cpu0 for AMI on scylla_sysconfig_setup.
But scylla_io_setup doesn't know that, try to assign NR_CPU queues, then scylla fails to start because queues > cpus.
So on this fix scylla_io_setup checks sysconfig settings, if '--smp <n>' specified on SCYLLA_ARGS, use n to limit queue size.
Also, when instance type is not supported pre-configured parameters, we need to passes --cpuset parameters to iotune. Otherwise iotune will run on a different set of CPUs, which may have different performance characteristics.
Fixes #996 , #1043 , #1046
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
Message-Id: <1458221762-10595-2-git-send-email-syuu@scylladb.com >
(cherry picked from commit 4cc589872d )
2016-03-18 08:58:00 +02:00
Takuya ASADA
a223450a56
dist: On scylla_sysconfig_setup, don't disable cpu0 on non-AMI environments
...
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
Message-Id: <1458221762-10595-1-git-send-email-syuu@scylladb.com >
(cherry picked from commit 6f71173827 )
2016-03-18 08:57:56 +02:00
Pekka Enberg
7d13d115c6
dist: Fix '--developer-mode' parsing in scylla_io_setup
...
We need to support the following variations:
--developer-mode true
--developer-mode 1
--developer-mode=true
--developer-mode=1
Fixes #1026 .
Message-Id: <1458203393-26658-1-git-send-email-penberg@scylladb.com >
(cherry picked from commit 0434bc3d33 )
2016-03-17 11:00:14 +02:00
Takuya ASADA
0ab3d0fd52
dist: use SEASTAR_IO instead of SCYLLA_IO
...
sync with iotune, fixes #1010
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
Message-Id: <1457530910-1273-1-git-send-email-syuu@scylladb.com >
2016-03-09 15:45:34 +02:00
Takuya ASADA
254b0fa676
dist: show message to use XFS for scylla data directory and also notify about developer mode, when iotune fails
...
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
Message-Id: <1457426286-15925-1-git-send-email-syuu@scylladb.com >
2016-03-08 12:20:33 +02:00
Takuya ASADA
9ee14abf24
dist: export sysconfig for scylla-io-setup.service
...
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
2016-03-07 18:13:30 +09:00
Takuya ASADA
3d9dc52f5f
Revert "Revert "dist: align ami option with others (-a --> --ami)""
...
This reverts commit 66c5feb9e9 .
Conflicts:
dist/common/scripts/scylla_sysconfig_setup
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
2016-03-07 18:13:30 +09:00
Takuya ASADA
c9882bc2c4
Revert "Revert "Revert "dist: remove AMI entry from sysconfig, since there is no script refering it"""
...
This reverts commit 643beefc8c .
Conflicts:
dist/common/scripts/scylla_sysconfig_setup
dist/common/sysconfig/scylla-server
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
2016-03-07 17:15:42 +09:00
Takuya ASADA
fd7eb7d1e5
dist: add support scylla_io_setup for Ubuntu
...
Unlike CentOS/Fedora, scylla_io_setup is calling from pre-start section of scylla-server upstart job, not from separated job.
This is because Upstart does not provide same behavior as After / Requires directives on systemd.
Fixes #954 .
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
Message-Id: <1456825805-4195-1-git-send-email-syuu@scylladb.com >
2016-03-01 12:56:44 +02:00
Takuya ASADA
48d72c01d1
dist: don't run iotune on developer mode
2016-02-29 20:13:46 +09:00
Takuya ASADA
e8a107de43
dist: install example io.conf by default
...
Prevent error on 'EnvironmentFile=/etc/scylla.d/*.conf'.
Parameters are commented out, and the file will replace when scylla starts, by scylla-io-setup.service.
2016-02-29 20:12:54 +09:00
Takuya ASADA
84447fd7b0
dist: permission error fixed on scylla_io_setup
...
Can't be scylla user since we are writing to /etc
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
Message-Id: <1456330209-5828-1-git-send-email-syuu@scylladb.com >
2016-02-29 11:35:38 +02:00
Takuya ASADA
b79a1a77da
Revert "dist: update SCYLLA_IO with params for AMI"
...
This reverts commit 5494135ddd .
Conflicts:
dist/common/scripts/scylla_sysconfig_setup
2016-02-24 03:45:11 +09:00
Takuya ASADA
643beefc8c
Revert "Revert "dist: remove AMI entry from sysconfig, since there is no script refering it""
...
This reverts commit 21e6720988 .
2016-02-24 03:33:50 +09:00
Takuya ASADA
66c5feb9e9
Revert "dist: align ami option with others (-a --> --ami)"
...
This reverts commit 312f1c9d98 .
2016-02-24 03:33:41 +09:00
Takuya ASADA
a9926f1cea
dist: introduce scylla-io-setup.service to setup io parameters on first startup
...
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
2016-02-24 03:33:03 +09:00
Shlomi Livne
312f1c9d98
dist: align ami option with others (-a --> --ami)
...
Signed-off-by: Shlomi Livne <shlomi@scylladb.com >
Message-Id: <c159aac7f0478aba34d4398a2eb8ea71285ede21.1456052976.git.shlomi@scylladb.com >
2016-02-21 15:06:20 +02:00
Shlomi Livne
21e6720988
Revert "dist: remove AMI entry from sysconfig, since there is no script refering it"
...
This reverts commit 54f9e59006 .
AMI is needed to setting up io params
Signed-off-by: Shlomi Livne <shlomi@scylladb.com >
Message-Id: <4154a000f019059f740319cfa2fbf875568770b7.1456052976.git.shlomi@scylladb.com >
2016-02-21 15:06:20 +02:00
Takuya ASADA
2d429e602a
dist: interactive scylla_setup
...
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
2016-02-17 07:34:08 +09:00
Takuya ASADA
a860e4baae
dist: remove AMI initialization code from scylla_setup, move to scylla-ami
...
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
2016-02-17 07:34:08 +09:00
Takuya ASADA
d7a03676e3
dist: don't ignore posix_net_conf.sh error
...
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
2016-02-17 07:34:08 +09:00
Takuya ASADA
684447d3ab
dist: long options for scylla_sysconfig_setup
...
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
2016-02-17 07:34:08 +09:00
Takuya ASADA
7861871c1b
dist: long options for scylla_raid_setup
...
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
2016-02-17 07:34:08 +09:00
Takuya ASADA
889c4706fc
dist: long options for scylla_ntp_setup
...
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
2016-02-17 07:34:08 +09:00
Takuya ASADA
2804e394a6
dist: long options for scylla_coredump_setup
...
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
2016-02-17 07:34:08 +09:00
Takuya ASADA
c12d95afe0
dist: add options to skip running setups on scylla_setup, support long options
...
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
2016-02-17 07:34:05 +09:00
Takuya ASADA
dc9012d5a4
dist: move selinux setup code to scylla_selinux_setup
...
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
2016-02-17 07:33:01 +09:00
Takuya ASADA
54f9e59006
dist: remove AMI entry from sysconfig, since there is no script refering it
...
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
2016-02-17 07:33:01 +09:00
Takuya ASADA
9b8f45d5b7
dist: don't use -a option for scylla_bootparam_setup since it was removed
...
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
2016-02-17 07:33:01 +09:00
Takuya ASADA
5b742ff447
dist: generalize scylla_ntp_setup, drop '-a' option (means AMI) from it
...
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
2016-02-17 07:28:38 +09:00
Shlomi Livne
5494135ddd
dist: update SCYLLA_IO with params for AMI
...
Add setting of --num-io-queues, --max-io-requests for AMI
Signed-off-by: Shlomi Livne <shlomi@scylladb.com >
Message-Id: <b94a63154a91c8568e194d7221b9ffc7d7813ebc.1455188901.git.shlomi@scylladb.com >
2016-02-11 17:01:02 +02:00
Shlomi Livne
d8cdf76e70
dist: change setting of scylla home from "-d" to "-r"
...
Signed-off-by: Shlomi Livne <shlomi@scylladb.com >
Message-Id: <53dcd9d1daa0194de3f889b67788d9c21d1e474d.1455188901.git.shlomi@scylladb.com >
2016-02-11 17:00:37 +02:00
Takuya ASADA
16e6db42e1
dist: abandon to start scylla-server when it's disabled from AMI userdata
...
Support AMi's --stop-services, prevent startup scylla-server (and scylla-jmx, since it's dependent on scylla-server)
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
Message-Id: <1454492729-11876-1-git-send-email-syuu@scylladb.com >
2016-02-11 12:21:08 +02:00
Takuya ASADA
111dc19942
dist: construct scylla.yaml on first startup of AMI instance, not AMI image creation time
...
Install scylla-ami-setup.service, stop calling scylla_sysconfig_setup on AMI.
scylla-ami-setup.service will call it instead.
Only works with scylla-ami fix.
Fixes #857
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
2016-01-30 15:48:45 -05:00
Takuya ASADA
71a26e1412
dist: don't need AMI_KEEP_VERSION anymore, since we fixed the issue that 'yum update' mistakenly replaces scylla development version with release version
...
It actually doesn't called unconditionally now, (since $LOCAL_PKG is always empty) so we can safely remove this.
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
2016-01-30 15:47:05 -05:00
Takuya ASADA
f9d32346ef
dist: scylla_sysconfig_setup uses current sysconfig values as default value
...
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
2016-01-30 15:46:21 -05:00
Takuya ASADA
4d5baef3e3
dist: keep original SCYLLA_ARGS when updating sysconfig
...
Since we dropped scylla_run, now default SCYLLA_ARGS parameter is not empty.
So we need to support it.
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
2016-01-30 15:44:03 -05:00