{"action":"created","issue":{"url":"https://api.github.com/repos/jaegertracing/jaeger-kubernetes/issues/15","repository_url":"https://api.github.com/repos/jaegertracing/jaeger-kubernetes","labels_url":"https://api.github.com/repos/jaegertracing/jaeger-kubernetes/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/jaegertracing/jaeger-kubernetes/issues/15/comments","events_url":"https://api.github.com/repos/jaegertracing/jaeger-kubernetes/issues/15/events","html_url":"https://github.com/jaegertracing/jaeger-kubernetes/issues/15","id":242996843,"number":15,"title":"Cassandra Replication factor ","user":{"login":"pavolloffay","id":5618424,"avatar_url":"https://avatars0.githubusercontent.com/u/5618424?v=4","gravatar_id":"","url":"https://api.github.com/users/pavolloffay","html_url":"https://github.com/pavolloffay","followers_url":"https://api.github.com/users/pavolloffay/followers","following_url":"https://api.github.com/users/pavolloffay/following{/other_user}","gists_url":"https://api.github.com/users/pavolloffay/gists{/gist_id}","starred_url":"https://api.github.com/users/pavolloffay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavolloffay/subscriptions","organizations_url":"https://api.github.com/users/pavolloffay/orgs","repos_url":"https://api.github.com/users/pavolloffay/repos","events_url":"https://api.github.com/users/pavolloffay/events{/privacy}","received_events_url":"https://api.github.com/users/pavolloffay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"pavolloffay","id":5618424,"avatar_url":"https://avatars0.githubusercontent.com/u/5618424?v=4","gravatar_id":"","url":"https://api.github.com/users/pavolloffay","html_url":"https://github.com/pavolloffay","followers_url":"https://api.github.com/users/pavolloffay/followers","following_url":"https://api.github.com/users/pavolloffay/following{/other_user}","gists_url":"https://api.github.com/users/pavolloffay/gists{/gist_id}","starred_url":"https://api.github.com/users/pavolloffay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavolloffay/subscriptions","organizations_url":"https://api.github.com/users/pavolloffay/orgs","repos_url":"https://api.github.com/users/pavolloffay/repos","events_url":"https://api.github.com/users/pavolloffay/events{/privacy}","received_events_url":"https://api.github.com/users/pavolloffay/received_events","type":"User","site_admin":false},"assignees":[{"login":"pavolloffay","id":5618424,"avatar_url":"https://avatars0.githubusercontent.com/u/5618424?v=4","gravatar_id":"","url":"https://api.github.com/users/pavolloffay","html_url":"https://github.com/pavolloffay","followers_url":"https://api.github.com/users/pavolloffay/followers","following_url":"https://api.github.com/users/pavolloffay/following{/other_user}","gists_url":"https://api.github.com/users/pavolloffay/gists{/gist_id}","starred_url":"https://api.github.com/users/pavolloffay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavolloffay/subscriptions","organizations_url":"https://api.github.com/users/pavolloffay/orgs","repos_url":"https://api.github.com/users/pavolloffay/repos","events_url":"https://api.github.com/users/pavolloffay/events{/privacy}","received_events_url":"https://api.github.com/users/pavolloffay/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2017-07-14T13:26:34Z","updated_at":"2017-07-18T16:41:52Z","closed_at":null,"body":"The production template currently uses `MODE=test` which translates to \r\n`replication=\"{'class': 'SimpleStrategy', 'replication_factor': '1'}\"`. \r\n\r\nWe deploy c* StatefulSet with 3 nodes, does it mean that one row is stored only on one of these 3 c* nodes? So if one node goes down do we loose data? What should we use? Something like \r\n` replication=\"{'class': 'NetworkTopologyStrategy', '$datacenter': '${replication_factor}' }\"` where `replication_factor` >= 2. Or what is the ideal number? Should it be equal to the number of c* nodes? @yurishkuro @jsanda (I'm new to c*)\r\n\r\n\r\nI have tried to setup the production cluster locally but I get some errors:\r\n```shell\r\nccm create test -v 3.9  -n 3 -s \r\nMODE=prod DATACENTER=local sh plugin/storage/cassandra/schema/create.sh | ccm node1 cqlsh\r\ngo run cmd/query/main.go  --query.static-files=jaeger-ui-build/build/ -cassandra.keyspace=jaeger_v1_local\r\n```\r\n-> Go to UI and get some traces\r\nError: `{\"data\":null,\"total\":0,\"limit\":0,\"offset\":0,\"errors\":[{\"code\":500,\"msg\":\"Cannot achieve consistency level ONE\"}]}` or:\r\n```\r\ngo run cmd/query/main.go  --query.static-files=jaeger-ui-build/build/ -cassandra.keyspace=jaeger_v1_local       3:23 \r\n{\"level\":\"info\",\"ts\":1500038642.715631,\"caller\":\"query/main.go:76\",\"msg\":\"Starting jaeger-query HTTP server\",\"port\":16686}\r\n{\"level\":\"error\",\"ts\":1500038655.0899656,\"caller\":\"spanstore/reader.go:376\",\"msg\":\"Failed to exec query\",\"error\":\"Cannot achieve consistency level ONE\",\"stacktrace\":\"github.com/uber/jaeger/vendor/go.uber.org/zap.Stack\\n\\t/home/ploffay/projects/golang/src/github.com/uber/jaeger/vendor/go.uber.org/zap/field.go:209\\ngithub.com/uber/jaeger/vendor/go.uber.org/zap.(*Logger).check\\n\\t/home/ploffay/projects/golang/src/github.com/uber/jaeger/vendor/go.uber.org/zap/logger.go:273\\ngithub.com/uber/jaeger/vendor/go.uber.org/zap.(*Logger).Error\\n\\t/home/ploffay/projects/golang/src/github.com/uber/jaeger/vendor/go.uber.org/zap/logger.go:176\\ngithub.com/uber/jaeger/plugin/storage/cassandra/spanstore.(*SpanReader).executeQuery\\n\\t/home/ploffay/projects/golang/src/github.com/uber/jaeger/plugin/storage/cassandra/spanstore/reader.go:376\\ngithub.com/uber/jaeger/plugin/storage/cassandra/spanstore.(*SpanReader).queryByService\\n\\t/home/ploffay/projects/golang/src/github.com/uber/jaeger/plugin/storage/cassandra/spanstore/reader.go:362\\ngithub.com/uber/jaeger/plugin/storage/cassandra/spanstore.(*SpanReader).findTraceIDs\\n\\t/home/ploffay/projects/golang/src/github.com/uber/jaeger/plugin/storage/cassandra/spanstore/reader.go:280\\ngithub.com/uber/jaeger/plugin/storage/cassandra/spanstore.(*SpanReader).FindTraces\\n\\t/home/ploffay/projects/golang/src/github.com/uber/jaeger/plugin/storage/cassandra/spanstore/reader.go:236\\ngithub.com/uber/jaeger/cmd/query/app.(*APIHandler).search\\n\\t/home/ploffay/projects/golang/src/github.com/uber/jaeger/cmd/query/app/handler.go:215\\ngithub.com/uber/jaeger/cmd/query/app.(*APIHandler).(github.com/uber/jaeger/cmd/query/app.search)-fm\\n\\t/home/ploffay/projects/golang/src/github.com/uber/jaeger/cmd/query/app/handler.go:124\\nnet/http.HandlerFunc.ServeHTTP\\n\\t/home/ploffay/bin/go/src/net/http/server.go:1726\\ngithub.com/uber/jaeger/vendor/github.com/opentracing-contrib/go-stdlib/nethttp.Middleware.func2\\n\\t/home/ploffay/projects/golang/src/github.com/uber/jaeger/vendor/github.com/opentracing-contrib/go-stdlib/nethttp/server.go:74\\nnet/http.HandlerFunc.ServeHTTP\\n\\t/home/ploffay/bin/go/src/net/http/server.go:1726\\nnet/http.(Handler).ServeHTTP-fm\\n\\t/home/ploffay/bin/go/src/net/http/h2_bundle.go:4084\\nnet/http.HandlerFunc.ServeHTTP\\n\\t/home/ploffay/bin/go/src/net/http/server.go:1726\\ngithub.com/uber/jaeger/vendor/github.com/gorilla/mux.(*Router).ServeHTTP\\n\\t/home/ploffay/projects/golang/src/github.com/uber/jaeger/vendor/github.com/gorilla/mux/mux.go:114\\ngithub.com/uber/jaeger/vendor/github.com/gorilla/handlers.recoveryHandler.ServeHTTP\\n\\t/home/ploffay/projects/golang/src/github.com/uber/jaeger/vendor/github.com/gorilla/handlers/recovery.go:78\\ngithub.com/uber/jaeger/vendor/github.com/gorilla/handlers.(*recoveryHandler).ServeHTTP\\n\\t<autogenerated>:53\\nnet/http.serverHandler.ServeHTTP\\n\\t/home/ploffay/bin/go/src/net/http/server.go:2202\\nnet/http.(*conn).serve\\n\\t/home/ploffay/bin/go/src/net/http/server.go:1579\"}\r\n```\r\nI think  @jpkrohling  got the same error here https://github.com/uber/jaeger/pull/157#discussion_r116272696\r\n"},"comment":{"url":"https://api.github.com/repos/jaegertracing/jaeger-kubernetes/issues/comments/316123797","html_url":"https://github.com/jaegertracing/jaeger-kubernetes/issues/15#issuecomment-316123797","issue_url":"https://api.github.com/repos/jaegertracing/jaeger-kubernetes/issues/15","id":316123797,"user":{"login":"pavolloffay","id":5618424,"avatar_url":"https://avatars0.githubusercontent.com/u/5618424?v=4","gravatar_id":"","url":"https://api.github.com/users/pavolloffay","html_url":"https://github.com/pavolloffay","followers_url":"https://api.github.com/users/pavolloffay/followers","following_url":"https://api.github.com/users/pavolloffay/following{/other_user}","gists_url":"https://api.github.com/users/pavolloffay/gists{/gist_id}","starred_url":"https://api.github.com/users/pavolloffay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavolloffay/subscriptions","organizations_url":"https://api.github.com/users/pavolloffay/orgs","repos_url":"https://api.github.com/users/pavolloffay/repos","events_url":"https://api.github.com/users/pavolloffay/events{/privacy}","received_events_url":"https://api.github.com/users/pavolloffay/received_events","type":"User","site_admin":false},"created_at":"2017-07-18T16:41:52Z","updated_at":"2017-07-18T16:41:52Z","body":"To document I solved my issue with `ccm`, `DATACENTER` should be equal to datacenter listed in `ccm node1 ring`"}}
{"actor":{"display_login":"pavolloffay"}}