You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/setup/backend/storages/banyandb.md
+77-64Lines changed: 77 additions & 64 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,21 +32,6 @@ storage:
32
32
Since 10.2.0, the banyandb configuration is separated to an independent configuration file: `bydb.yaml`:
33
33
34
34
```yaml
35
-
# Licensed to the Apache Software Foundation (ASF) under one or more
36
-
# contributor license agreements. See the NOTICE file distributed with
37
-
# this work for additional information regarding copyright ownership.
38
-
# The ASF licenses this file to You under the Apache License, Version 2.0
39
-
# (the "License"); you may not use this file except in compliance with
40
-
# the License. You may obtain a copy of the License at
41
-
#
42
-
# http://www.apache.org/licenses/LICENSE-2.0
43
-
#
44
-
# Unless required by applicable law or agreed to in writing, software
45
-
# distributed under the License is distributed on an "AS IS" BASIS,
46
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
47
-
# See the License for the specific language governing permissions and
48
-
# limitations under the License.
49
-
50
35
global:
51
36
# Targets is the list of BanyanDB servers, separated by commas.
52
37
# Each target is a BanyanDB server in the format of `host:port`.
@@ -82,9 +67,15 @@ global:
82
67
83
68
groups:
84
69
# The group settings of record.
70
+
# - "ShardNum": Number of shards in the group. Shards are the basic units of data storage in BanyanDB. Data is distributed across shards based on the hash value of the series ID.
71
+
# Refer to the [BanyanDB Shard](https://skywalking.apache.org/docs/skywalking-banyandb/latest/concept/clustering/#52-data-sharding) documentation for more details.
72
+
# - "SIDays": Interval in days for creating a new segment. Segments are time-based, allowing efficient data retention and querying. `SI` stands for Segment Interval.
73
+
# - "TTLDays": Time-to-live for the data in the group, in days. Data exceeding the TTL will be deleted.
85
74
#
86
-
# The "normal" section defines settings for datasets not specified in "super".
87
-
# Each dataset will be grouped under a single group named "normal".
75
+
# For more details on setting `segmentIntervalDays` and `ttlDays`, refer to the [BanyanDB TTL](https://skywalking.apache.org/docs/main/latest/en/banyandb/ttl) documentation.
76
+
77
+
# The "recordsNormal" section defines settings for datasets not specified in records.
78
+
# Each dataset will be grouped under a single group named "recordsNormal".
# The group settings of property, such as UI and profiling.
193
232
property:
@@ -232,30 +271,4 @@ docker run -d \
232
271
-**Cluster Mode**: Suitable for large-scale deployments.
233
272
-**Configuration**: `targets` is the IP address/hostname and port of the `liaison` nodes, separated by commas. `Liaison` nodes are the entry points of the BanyanDB cluster.
234
273
235
-
### Group Settings
236
-
237
-
BanyanDB supports **group settings** to configure storage groups, shards, segment intervals, and TTL (Time-To-Live). The group settings file is a YAML file required when using BanyanDB as the storage.
238
-
239
-
#### Basic Group Settings
240
-
241
-
-`ShardNum`: Number of shards in the group. Shards are the basic units of data storage in BanyanDB. Data is distributed across shards based on the hash value of the series ID. Refer to the [BanyanDB Shard](https://skywalking.apache.org/docs/skywalking-banyandb/latest/concept/clustering/#52-data-sharding) documentation for more details.
242
-
-`SIDays`: Interval in days for creating a new segment. Segments are time-based, allowing efficient data retention and querying. `SI` stands for Segment Interval.
243
-
-`TTLDays`: Time-to-live for the data in the group, in days. Data exceeding the TTL will be deleted.
244
-
245
-
For more details on setting `segmentIntervalDays` and `ttlDays`, refer to the [BanyanDB TTL](../../../banyandb/ttl.md) documentation.
246
-
247
-
#### Record Group Settings
248
-
249
-
The `gr` prefix is used for record group settings. The `normal` and `super` sections are used to define settings for normal and super datasets, respectively.
250
-
251
-
Super datasets are used to store trace or log data that is too large for normal datasets. Each super dataset is stored in a separate group in BanyanDB. The settings defined in the `super` section are applied to all super datasets.
252
-
253
-
Normal datasets are stored in a single group named `normal`. The settings defined in the `normal` section are applied to all normal datasets.
254
-
255
-
#### Metrics Group Settings
256
-
257
-
The `gm` prefix is used for metrics group settings. The `minute`, `hour`, and `day` sections are used to define settings for metrics stored based on granularity.
258
-
259
-
The `index` group is designed to store metrics used for indexing without value columns. For example, `service_traffic`, `network_address_alias`, etc.
260
-
261
274
For more details, refer to the documentation of [BanyanDB](https://skywalking.apache.org/docs/skywalking-banyandb/latest/readme/) and the [BanyanDB Java Client](https://github.com/apache/skywalking-banyandb-java-client) subprojects.
Copy file name to clipboardExpand all lines: oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/analysis/manual/log/LogRecord.java
Copy file name to clipboardExpand all lines: oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/analysis/manual/segment/SegmentRecord.java
0 commit comments