How to specify different replica factors for different datacenters

17 views
Skip to first unread message

Origin Jing

<michael.origin.j@gmail.com>
unread,
Apr 9, 2017, 11:41:42 PM4/9/17
to ScyllaDB users
I am experimenting on multi-datacenter scylladb doployments. I read somewhere that it is possible to specify different replica factor for different datacenters, however I colud find the page now, please help.


Shlomi Livne

<shlomi@scylladb.com>
unread,
Apr 10, 2017, 2:16:32 AM4/10/17
to ScyllaDB users
Jing Hi,

When using a multi-dc deployment - KEYSPACE defnition needs to be changed from using the SimpleStrategy - to NetworkTopologyStrategy. Using NetworkTopologyStrategy you can specify for each DC what replication is required.

for example if you have your cluster split over 2 DCs: "dc1","dc2".
CREATE KEYSPACE ks
  WITH REPLICATION = {'class' : 'NetworkTopologyStrategy', 'dc1' : 3, 'dc2' : 2};
Additional information on how to setup scylla for a multi-dc configuration can be found http://docs.scylladb.com/procedures/create_cluster_multidc/

On Mon, Apr 10, 2017 at 6:41 AM, Origin Jing <michael....@gmail.com> wrote:
I am experimenting on multi-datacenter scylladb doployments. I read somewhere that it is possible to specify different replica factor for different datacenters, however I colud find the page now, please help.


--
You received this message because you are subscribed to the Google Groups "ScyllaDB users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scylladb-users+unsubscribe@googlegroups.com.
To post to this group, send email to scylladb-users@googlegroups.com.
Visit this group at https://groups.google.com/group/scylladb-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/scylladb-users/ee43b4cb-026a-4420-8fb7-98d3d539a329%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages