Package zipkin2.storage.cassandra
Class CassandraStorage.Builder
java.lang.Object
zipkin2.storage.StorageComponent.Builder
zipkin2.storage.cassandra.CassandraStorage.Builder
- Enclosing class:
- CassandraStorage
-
Method Summary
Modifier and TypeMethodDescriptionautocompleteCardinality
(int autocompleteCardinality) autocompleteKeys
(List<String> keys) autocompleteTtl
(int autocompleteTtl) build()
contactPoints
(String contactPoints) Comma separated list of host addresses part of Cassandra cluster.ensureSchema
(boolean ensureSchema) Ensures that schema exists, if enabled tries to execute: io.zipkin.zipkin2:zipkin-storage-cassandra/zipkin2-schema.cql io.zipkin.zipkin2:zipkin-storage-cassandra/zipkin2-indexes.cql Defaults to true.indexFetchMultiplier
(int indexFetchMultiplier) How many more index rows to fetch than the user-supplied query limit.Keyspace to store span and index data.Name of the datacenter that will be considered "local" for latency load balancing.maxConnections
(int maxConnections) Max pooled connections per datacenter-local host.maxTraceCols
(int maxTraceCols) Spans have multiple values for the same id.Will throw an exception on startup if authentication fails.searchEnabled
(boolean searchEnabled) sessionFactory
(CassandraStorage.SessionFactory sessionFactory) Override to control how sessions are created.sslHostnameValidation
(boolean sslHostnameValidation) Controls validation of Cassandra server hostname.strictTraceId
(boolean strictTraceId) Will throw an exception on startup if authentication fails.useSsl
(boolean useSsl) Use ssl for connection.
-
Method Details
-
keyspace
Keyspace to store span and index data. Defaults to "zipkin2" -
ensureSchema
Ensures that schema exists, if enabled tries to execute:- io.zipkin.zipkin2:zipkin-storage-cassandra/zipkin2-schema.cql
- io.zipkin.zipkin2:zipkin-storage-cassandra/zipkin2-indexes.cql
-
build
- Specified by:
build
in classStorageComponent.Builder
-
strictTraceId
- Specified by:
strictTraceId
in classStorageComponent.Builder
-
searchEnabled
- Specified by:
searchEnabled
in classStorageComponent.Builder
-
autocompleteKeys
- Overrides:
autocompleteKeys
in classStorageComponent.Builder
-
autocompleteTtl
- Overrides:
autocompleteTtl
in classStorageComponent.Builder
-
autocompleteCardinality
- Overrides:
autocompleteCardinality
in classStorageComponent.Builder
-
contactPoints
Comma separated list of host addresses part of Cassandra cluster. You can also specify a custom port with 'host:port'. Defaults to localhost on port 9042 * -
localDc
Name of the datacenter that will be considered "local" for latency load balancing. When unset, load-balancing is round-robin. -
maxConnections
Max pooled connections per datacenter-local host. Defaults to 8 -
username
Will throw an exception on startup if authentication fails. No default. -
password
Will throw an exception on startup if authentication fails. No default. -
useSsl
Use ssl for connection. Defaults to false. -
sslHostnameValidation
Controls validation of Cassandra server hostname. Defaults to true. -
sessionFactory
Override to control how sessions are created. -
maxTraceCols
Spans have multiple values for the same id. For example, a client and server contribute to the same span id. When searching for spans by id, the amount of results may be larger than the ids. This defines a threshold which accommodates this situation, without looking for an unbounded number of results. -
indexFetchMultiplier
How many more index rows to fetch than the user-supplied query limit. Defaults to 3.Backend requests will request
QueryRequest.limit()
times this factor rows from Cassandra indexes in attempts to returnQueryRequest.limit()
traces.Indexing in cassandra will usually have more rows than trace identifiers due to factors including table design and collection implementation. As there's no way to DISTINCT out duplicates server-side, this over-fetches client-side when
indexFetchMultiplier
> 1.
-