Skip to content

Commit 6b59977

Browse files
authored
Remove banyandb config from data-generator and profile-exporter's application.yml (#13099)
1 parent 9dcf64e commit 6b59977

File tree

2 files changed

+2
-78
lines changed

2 files changed

+2
-78
lines changed

Diff for: oap-server/server-tools/data-generator/src/main/resources/application.yml

+1-49
Original file line numberDiff line numberDiff line change
@@ -157,55 +157,7 @@ storage:
157157
maxSizeOfBatchSql: ${SW_STORAGE_MAX_SIZE_OF_BATCH_SQL:2000}
158158
asyncBatchPersistentPoolSize: ${SW_STORAGE_ASYNC_BATCH_PERSISTENT_POOL_SIZE:4}
159159
banyandb:
160-
# Targets is the list of BanyanDB servers, separated by commas.
161-
# Each target is a BanyanDB server in the format of `host:port`
162-
# If the BanyanDB is deployed as a standalone server, the target should be the IP address or domain name and port of the BanyanDB server.
163-
# If the BanyanDB is deployed in a cluster, the targets should be the IP address or domain name and port of the `liaison` nodes, separated by commas.
164-
targets: ${SW_STORAGE_BANYANDB_TARGETS:127.0.0.1:17912}
165-
# The max number of records in a bulk write request.
166-
# Bigger value can improve the write performance, but also increase the OAP and BanyanDB Server memory usage.
167-
maxBulkSize: ${SW_STORAGE_BANYANDB_MAX_BULK_SIZE:10000}
168-
# The minimum seconds between two bulk flushes.
169-
# If the data in a bulk is less than maxBulkSize, the data will be flushed after this period.
170-
# If the data in a bulk is more than maxBulkSize, the data will be flushed immediately.
171-
# Bigger value can reduce the write pressure on BanyanDB Server, but also increase the latency of the data.
172-
flushInterval: ${SW_STORAGE_BANYANDB_FLUSH_INTERVAL:15}
173-
# The timeout seconds of a bulk flush.
174-
flushTimeout: ${SW_STORAGE_BANYANDB_FLUSH_TIMEOUT:10}
175-
# The shard number of `measure` groups that store the metrics data.
176-
metricsShardsNumber: ${SW_STORAGE_BANYANDB_METRICS_SHARDS_NUMBER:1}
177-
# The shard number of `stream` groups that store the trace, log and profile data.
178-
recordShardsNumber: ${SW_STORAGE_BANYANDB_RECORD_SHARDS_NUMBER:1}
179-
# The multiplier of the number of shards of the super dataset.
180-
# Super dataset is a special dataset that stores the trace or log data that is too large to be stored in the normal dataset.
181-
# If the normal dataset has `n` shards, the super dataset will have `n * superDatasetShardsFactor` shards.
182-
# For example, supposing `recordShardsNumber` is 3, and `superDatasetShardsFactor` is 2,
183-
# `segment-default` is a normal dataset that has 3 shards, and `segment-minute` is a super dataset that has 6 shards.
184-
superDatasetShardsFactor: ${SW_STORAGE_BANYANDB_SUPERDATASET_SHARDS_FACTOR:2}
185-
# The number of threads that write data to BanyanDB concurrently.
186-
# Bigger value can improve the write performance, but also increase the OAP and BanyanDB Server CPU usage.
187-
concurrentWriteThreads: ${SW_STORAGE_BANYANDB_CONCURRENT_WRITE_THREADS:15}
188-
# The maximum size of dataset when the OAP loads cache, such as network aliases.
189-
resultWindowMaxSize: ${SW_STORAGE_BANYANDB_QUERY_MAX_WINDOW_SIZE:10000}
190-
# The maximum size of metadata per query.
191-
metadataQueryMaxSize: ${SW_STORAGE_BANYANDB_QUERY_MAX_SIZE:10000}
192-
# The maximum size of trace segments per query.
193-
segmentQueryMaxSize: ${SW_STORAGE_BANYANDB_QUERY_SEGMENT_SIZE:200}
194-
# The max number of profile task query in a request.
195-
profileTaskQueryMaxSize: ${SW_STORAGE_BANYANDB_QUERY_PROFILE_TASK_SIZE:200}
196-
# The batch size of query profiling data.
197-
profileDataQueryBatchSize: ${SW_STORAGE_BANYANDB_QUERY_PROFILE_DATA_BATCH_SIZE:100}
198-
# Data is stored in BanyanDB in segments. A segment is a time range of data.
199-
# The segment interval is the time range of a segment.
200-
# The value should be less or equal to data TTL relevant settings.
201-
segmentIntervalDays: ${SW_STORAGE_BANYANDB_SEGMENT_INTERVAL_DAYS:1}
202-
# The super dataset segment interval is the time range of a segment in the super dataset.
203-
superDatasetSegmentIntervalDays: ${SW_STORAGE_BANYANDB_SUPER_DATASET_SEGMENT_INTERVAL_DAYS:1}
204-
# Specific groups settings.
205-
# For example, {"group1": {"blockIntervalHours": 4, "segmentIntervalDays": 1}}
206-
# Please refer to https://github.com/apache/skywalking-banyandb/blob/${BANYANDB_RELEASE}/docs/crud/group.md#create-operation
207-
# for group setting details.
208-
specificGroupSettings: ${SW_STORAGE_BANYANDB_SPECIFIC_GROUP_SETTINGS:""}
160+
# Since 10.2.0, the banyandb configuration is separated to an independent configuration file: `bydb.yaml`.
209161

210162
agent-analyzer:
211163
selector: ${SW_AGENT_ANALYZER:default}

Diff for: tools/profile-exporter/application.yml

+1-29
Original file line numberDiff line numberDiff line change
@@ -49,35 +49,7 @@ storage:
4949
dataSource.useServerPrepStmts: ${SW_DATA_SOURCE_USE_SERVER_PREP_STMTS:true}
5050
metadataQueryMaxSize: ${SW_STORAGE_MYSQL_QUERY_MAX_SIZE:5000}
5151
banyandb:
52-
targets: ${SW_STORAGE_BANYANDB_TARGETS:127.0.0.1:17912}
53-
maxBulkSize: ${SW_STORAGE_BANYANDB_MAX_BULK_SIZE:10000}
54-
flushInterval: ${SW_STORAGE_BANYANDB_FLUSH_INTERVAL:15}
55-
flushTimeout: ${SW_STORAGE_BANYANDB_FLUSH_TIMEOUT:10}
56-
concurrentWriteThreads: ${SW_STORAGE_BANYANDB_CONCURRENT_WRITE_THREADS:15}
57-
resultWindowMaxSize: ${SW_STORAGE_BANYANDB_QUERY_MAX_WINDOW_SIZE:10000}
58-
metadataQueryMaxSize: ${SW_STORAGE_BANYANDB_QUERY_MAX_SIZE:10000}
59-
segmentQueryMaxSize: ${SW_STORAGE_BANYANDB_QUERY_SEGMENT_SIZE:200}
60-
profileTaskQueryMaxSize: ${SW_STORAGE_BANYANDB_QUERY_PROFILE_TASK_SIZE:200}
61-
profileDataQueryBatchSize: ${SW_STORAGE_BANYANDB_QUERY_PROFILE_DATA_BATCH_SIZE:100}
62-
sslTrustCAPath: ${SW_STORAGE_BANYANDB_SSL_TRUST_CA_PATH:""}
63-
grNormalShardNum: ${SW_STORAGE_BANYANDB_GR_NORMAL_SHARD_NUM:1}
64-
grNormalSIDays: ${SW_STORAGE_BANYANDB_GR_NORMAL_SI_DAYS:1}
65-
grNormalTTLDays: ${SW_STORAGE_BANYANDB_GR_NORMAL_TTL_DAYS:3}
66-
grSuperShardNum: ${SW_STORAGE_BANYANDB_GR_SUPER_SHARD_NUM:2}
67-
grSuperSIDays: ${SW_STORAGE_BANYANDB_GR_SUPER_SI_DAYS:1}
68-
grSuperTTLDays: ${SW_STORAGE_BANYANDB_GR_SUPER_TTL_DAYS:3}
69-
gmMinuteShardNum: ${SW_STORAGE_BANYANDB_GM_MINUTE_SHARD_NUM:2}
70-
gmMinuteSIDays: ${SW_STORAGE_BANYANDB_GM_MINUTE_SI_DAYS:1}
71-
gmMinuteTTLDays: ${SW_STORAGE_BANYANDB_GM_MINUTE_TTL_DAYS:7}
72-
gmHourShardNum: ${SW_STORAGE_BANYANDB_GM_HOUR_SHARD_NUM:1}
73-
gmHourSIDays: ${SW_STORAGE_BANYANDB_GM_HOUR_SI_DAYS:5}
74-
gmHourTTLDays: ${SW_STORAGE_BANYANDB_GM_HOUR_TTL_DAYS:15}
75-
gmDayShardNum: ${SW_STORAGE_BANYANDB_GM_DAY_SHARD_NUM:1}
76-
gmDaySIDays: ${SW_STORAGE_BANYANDB_GM_DAY_SI_DAYS:15}
77-
gmDayTTLDays: ${SW_STORAGE_BANYANDB_GM_DAY_TTL_DAYS:15}
78-
gmIndexShardNum: ${SW_STORAGE_BANYANDB_GM_INDEX_SHARD_NUM:2}
79-
gmIndexSIDays: ${SW_STORAGE_BANYANDB_GM_INDEX_SI_DAYS:15}
80-
gmIndexTTLDays: ${SW_STORAGE_BANYANDB_GM_INDEX_TTL_DAYS:15}
52+
# Since 10.2.0, the banyandb configuration is separated to an independent configuration file: `bydb.yaml`.
8153

8254
telemetry:
8355
selector: ${SW_TELEMETRY:none}

0 commit comments

Comments
 (0)