diff options
author | Daniel Schaefer <git@danielschaefer.me> | 2019-04-07 05:02:32 +0200 |
---|---|---|
committer | Daniel Schaefer <git@danielschaefer.me> | 2019-06-13 04:34:03 +0200 |
commit | a2aa01be0c4536985701984c8db2bd75c3a25934 (patch) | |
tree | 589834171ea6ed402108869ce50bf7342cb3d98d /nixos | |
parent | c3311fb38bf6891059827db1dcef88e65b5f88f3 (diff) |
nixos/cassandra: Enable CQL server by default
Resolves #50954
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/databases/cassandra.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/nixos/modules/services/databases/cassandra.nix b/nixos/modules/services/databases/cassandra.nix index 688938868020..af0c29405c8f 100644 --- a/nixos/modules/services/databases/cassandra.nix +++ b/nixos/modules/services/databases/cassandra.nix @@ -8,6 +8,7 @@ let cassandraConfig = flip recursiveUpdate cfg.extraConfig ({ commitlog_sync = "batch"; commitlog_sync_batch_window_in_ms = 2; + start_native_transport = cfg.allowClients; partitioner = "org.apache.cassandra.dht.Murmur3Partitioner"; endpoint_snitch = "SimpleSnitch"; seed_provider = @@ -162,6 +163,18 @@ in { XML logback configuration for cassandra ''; }; + allowClients = mkOption { + type = types.bool; + default = true; + description = '' + Enables or disables the native transport server (CQL binary protocol). + This server uses the same address as the <literal>rpcAddress</literal>, + but the port it uses is not <literal>rpc_port</literal> but + <literal>native_transport_port</literal>. See the official Cassandra + docs for more information on these variables and set them using + <literal>extraConfig</literal>. + ''; + }; extraConfig = mkOption { type = types.attrs; default = {}; |