Skip to content

Commit

Permalink
Removed cassandra-consistency from all the configs (cadence-workflow#…
Browse files Browse the repository at this point in the history
…2898)

* Removed cassandra-consistency from all the configs

* Updated docker command

* Removed cassandra consistency from persistence doc
  • Loading branch information
anish531213 authored Dec 11, 2019
1 parent 61d1a8a commit 9ca09cc
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 17 deletions.
2 changes: 0 additions & 2 deletions config/development.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ persistence:
cassandra:
hosts: "127.0.0.1"
keyspace: "cadence"
consistency: "One"
cass-visibility:
cassandra:
hosts: "127.0.0.1"
keyspace: "cadence_visibility"
consistency: "One"

ringpop:
name: cadence
Expand Down
2 changes: 0 additions & 2 deletions config/development_active.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ persistence:
cassandra:
hosts: "127.0.0.1"
keyspace: "cadence_active"
consistency: "One"
cass-visibility:
cassandra:
hosts: "127.0.0.1"
keyspace: "cadence_visibility_active"
consistency: "One"

ringpop:
name: cadence_active
Expand Down
2 changes: 0 additions & 2 deletions config/development_es.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ persistence:
cassandra:
hosts: "127.0.0.1"
keyspace: "cadence"
consistency: "One"
cass-visibility:
cassandra:
hosts: "127.0.0.1"
keyspace: "cadence_visibility"
consistency: "One"
es-visibility:
elasticsearch:
url:
Expand Down
2 changes: 0 additions & 2 deletions config/development_other.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ persistence:
cassandra:
hosts: "127.0.0.1"
keyspace: "cadence_other"
consistency: "One"
cass-visibility:
cassandra:
hosts: "127.0.0.1"
keyspace: "cadence_visibility_other"
consistency: "One"

ringpop:
name: cadence_other
Expand Down
2 changes: 0 additions & 2 deletions config/development_prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ persistence:
cassandra:
hosts: "127.0.0.1"
keyspace: "cadence"
consistency: "One"
cass-visibility:
cassandra:
hosts: "127.0.0.1"
keyspace: "cadence_visibility"
consistency: "One"

ringpop:
name: cadence
Expand Down
2 changes: 0 additions & 2 deletions config/development_standby.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ persistence:
cassandra:
hosts: "127.0.0.1"
keyspace: "cadence_standby"
consistency: "One"
cass-visibility:
cassandra:
hosts: "127.0.0.1"
keyspace: "cadence_visibility_standby"
consistency: "One"

ringpop:
name: cadence_standby
Expand Down
3 changes: 1 addition & 2 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ a production setting, use the following command:


```
docker run -e CASSANDRA_CONSISTENCY=Quorum \ -- Default cassandra consistency level
-e CASSANDRA_SEEDS=10.x.x.x -- csv of cassandra server ipaddrs
docker run -e CASSANDRA_SEEDS=10.x.x.x -- csv of cassandra server ipaddrs
-e KEYSPACE=<keyspace> -- Cassandra keyspace
-e VISIBILITY_KEYSPACE=<visibility_keyspace> -- Cassandra visibility keyspace
-e SKIP_SCHEMA_SETUP=true -- do not setup cassandra schema during startup
Expand Down
2 changes: 0 additions & 2 deletions docker/config_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@ persistence:
cassandra:
hosts: {{ default .Env.CASSANDRA_SEEDS "" }}
keyspace: {{ default .Env.KEYSPACE "cadence" }}
consistency: {{ default .Env.CASSANDRA_CONSISTENCY "One" }}
visibility:
cassandra:
hosts: {{ default .Env.CASSANDRA_SEEDS "" }}
keyspace: {{ default .Env.VISIBILITY_KEYSPACE "cadence_visibility" }}
consistency: {{ default .Env.CASSANDRA_CONSISTENCY "One" }}
{{- else if eq $db "mysql" }}
default:
sql:
Expand Down
1 change: 0 additions & 1 deletion docs/persistence.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ persistence:
User: "user-name"
Password: "password"
keyspace: "cadence" -- Name of the cassandra keyspace
consistency: "QUORUM" -- Default consistence, MUST be QUORUM for production (optional)
datacenter: "us-east-1a" -- Cassandra datacenter filter to limit queries to a single dc (optional)
maxQPS: 1000 -- MaxQPS to cassandra from a single cadence sub-system on one host (optional)
maxConns: 2 -- Number of tcp conns to cassandra server (single sub-system on one host) (optional)
Expand Down

0 comments on commit 9ca09cc

Please sign in to comment.