Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scylla-node: fix scylla_setup call #341

Merged

Conversation

vladzcloudius
Copy link
Collaborator

Add missing --no-cpuscaling-setup and --no-fstrim-setup (we explicitly setup these later in the play) and make sure to always call scylla_setup - with the parameters we call it it should be safe to call it even when scylla server is already running.

We also don't need to give '--nic {{ scylla_nic }} --setup-nic-and-disks' parameters because they are canceled by --no-sysconfig-setup at the end of the command line and because we are going to call scylla_sysconfig_setup later in the play explicitly.

Fixes #339

@vladzcloudius vladzcloudius force-pushed the node-always-run-scylla-setup branch 3 times, most recently from 4616f89 to e81b67f Compare February 20, 2024 00:58
Add missing --no-cpuscaling-setup and --no-fstrim-setup (we explicitly setup these later in the play)
and make sure to always call `scylla_setup` - with the parameters we call it
it should be safe to call it even when scylla server is already running.

We also don't need to give '--nic {{ scylla_nic }} --setup-nic-and-disks' parameters
because they are canceled by --no-sysconfig-setup at the end of the command line
and because we are going to call scylla_sysconfig_setup later in the play explicitly.

We also needed to parametrize the memory locking setup to allow molecule run in containers
on the same VM.

Fixes scylladb#98
Fixes scylladb#339

Signed-off-by: Vlad Zolotarov <[email protected]>
Scylla ships an up to date peftune.py for quite some time.
Let's remove the bits that were working around a very old
breakage in it.

With this patch a Role will rely on an auto-selection logic by default.
And one can enforce a specific CPU set using `cpuset_command` parameter.

For example: scylla_cpuset_setup --cpuset 1-7,9-15

In addition to that we need to setup cpuset.conf BEFORE
we run iotune because scylla_io_setup is going to
use the CPUSET value from it.

Signed-off-by: Vlad Zolotarov <[email protected]>
@vladzcloudius vladzcloudius force-pushed the node-always-run-scylla-setup branch from e81b67f to 9d0b87c Compare February 20, 2024 02:00
We want all relevant services to be enabled.

Signed-off-by: Vlad Zolotarov <[email protected]>
@vladzcloudius vladzcloudius merged commit 7d7bfc2 into scylladb:master Feb 20, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[scylla-node]: scylla_setup is never called
2 participants