Use a remote database for Scylla Manager

When you install Scylla Manager, it installs a local instance of Scylla to use as it’s database. You are not required to use the local instance and can use Scylla Manager with a remote database.

Requirements

  • Scylla cluster to be used as Scylla Manager data store.
  • Package scylla-manager installed.

Remove local Scylla instance

The scylla-manager package is a meta package that pulls both Scylla and Scylla Manager packages. If you do not intend to use the local Scylla instance you may remove it.

Procedure

  1. Remove scylla-enterprise package.
sudo yum remove scylla-enterprise -y
  1. Remove related packages, this would also remove Scylla Manager.
sudo yum autoremove -y
  1. Install Scylla Manager client and server packages.
sudo yum install scylla-manager-client scylla-manager-server -y

Edit Scylla Manager configuration

Scylla Manager configuration file /etc/scylla-manager/scylla-manager.yaml contains a database configuration section.

# Scylla Manager database, used to store management data.
database:
  hosts:
    - 127.0.0.1
# Database credentials.
#   user: user
#   password: password

# Database connection timeout.
#   timeout: 600ms

# Keyspace for management data, for create statement see /etc/scylla-manager/create_keyspace.cql.tpl.
#   keyspace: scylla_manager
#   replication_factor: 1

Using an editor open the file and change relevant parameters.

Procedure

  1. Edit the hosts parameter, change the IP address to the IP address or addressees of the remote cluster.
  2. If authentication is needed, uncomment and edit the user and password parameters.
  3. If the remote cluster contains more than one node, uncomment and edit the replication_factor parameter to match the required replication factor. Note that this would use a simple replication strategy (SimpleStrategy). If you want to use different replication strategy, create scylla_manager keyspace (or other matching the keyspace parameter) yourself. Refer to Scylla Architecture - Fault Tolerance for more information on replication.

Sample configuration of Scylla Manager working with a remote cluster with authentication and replication factor 3 could look like this.

database:
  hosts:
    - 198.100.51.11
    - 198.100.51.12
  user: user
  password: password
  replication_factor: 3