-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use span name table instead of materialized view (#1392)
- This switches span name and service name lookups to use a table instead of a materialized view. This change will fix #1360 - Change limit logic to limit on a set of trace IDs instead of limiting on the provided collection first. In pracitce this didn't make a noticiable difference in the results but it seems like the intended logic. - update stress profiles for new span_name_by_service tables references: - #1392 - #1360 - #1374
- Loading branch information
1 parent
8f56d23
commit 194fff8
Showing
6 changed files
with
127 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
zipkin-storage/cassandra3/src/test/resources/span_name_by_service-stress.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Copyright 2015-2016 The OpenZipkin Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | ||
# in compliance with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software distributed under the License | ||
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||
# or implied. See the License for the specific language governing permissions and limitations under | ||
# the License. | ||
# | ||
### | ||
### Stress test for zipkin3 service_span_name_index table | ||
### | ||
### Stress testing is done using the `cassandra-stress` tool | ||
### | ||
### For example | ||
### cassandra-stress user profile=span_name_by_service-stress.yaml ops\(insert=1\) duration=1m -rate threads=4 throttle=50/s | ||
### | ||
### after a benchmark has been run with only writes, a mixed read-write benchmark can be run with | ||
### cassandra-stress user profile=span_name_by_service-stress.yaml ops\(insert=1,select=1,select_span_names=1\) duration=1m -rate threads=4 throttle=50/s | ||
|
||
# Keyspace Name | ||
keyspace: zipkin3 | ||
|
||
# Table name | ||
table: span_name_by_service | ||
|
||
|
||
### Column Distribution Specifications ### | ||
|
||
columnspec: | ||
- name: service_name | ||
size: uniform(5..20) | ||
population: uniform(1..100) | ||
|
||
- name: span_name | ||
size: uniform(5..20) | ||
population: uniform(1..100) | ||
|
||
|
||
### Batch Ratio Distribution Specifications ### | ||
|
||
insert: | ||
partitions: fixed(1) # 1 pertition key at a time inserts to model a message being generated | ||
select: fixed(1)/1000 | ||
batchtype: UNLOGGED # Unlogged batches | ||
|
||
|
||
# | ||
# A set of basic queries | ||
# | ||
queries: | ||
select: | ||
cql: SELECT DISTINCT service_name FROM span_name_by_service | ||
fields: samerow | ||
select_span_names: | ||
cql: SELECT span_name FROM span_name_by_service WHERE service_name = ? LIMIT 1000 | ||
fields: samerow |