Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

experiment: streaming compaction #3438

Merged
merged 4 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions api/metastore/v1/metastore.proto
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ message TenantService {
int64 max_time = 4;

// Table of contents lists data sections within the tenant
// service region. The interpretation of the table of contents
// is specific to the metadata format version. By default, the
// sections are:
// service region. The offsets are absolute.
//
// The interpretation of the table of contents is specific
// to the metadata format version. By default, the sections are:
// - 0: profiles.parquet
// - 1: index.tsdb
// - 2: symbols.symdb
Expand Down
16 changes: 8 additions & 8 deletions operations/pyroscope/helm/pyroscope/rendered/micro-services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2303,7 +2303,7 @@ metadata:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: "compaction-worker"
spec:
replicas: 32
replicas: 4
selector:
matchLabels:
app.kubernetes.io/name: pyroscope
Expand Down Expand Up @@ -2347,14 +2347,14 @@ spec:
- "-metastore.raft.advertise-address=$(POD_NAME).pyroscope-dev-metastore-headless.default.svc.cluster.local.:9099"
- "-metastore.raft.server-id=$(POD_NAME).pyroscope-dev-metastore-headless.default.svc.cluster.local.:9099"
- "-metastore.raft.bootstrap-peers=dnssrvnoa+_raft._tcp.pyroscope-dev-metastore-headless.default.svc.cluster.local.:9099"
- "-metastore.raft.bootstrap-expect-peers=32"
- "-metastore.raft.bootstrap-expect-peers=4"
- "-metastore.address=dns:///_grpc._tcp.pyroscope-dev-metastore-headless.default.svc.cluster.local.:9095"
- "-query-backend.address=dns:///pyroscope-dev-query-worker-headless.default.svc.cluster.local.:9095"
- "-config.file=/etc/pyroscope/config.yaml"
- "-runtime-config.file=/etc/pyroscope/overrides/overrides.yaml"
- "-ingester.num-tokens=4"
- "-distributor.replication-factor=1"
- "-compaction-worker.job-capacity=40"
- "-compaction-worker.job-capacity=5"
- "-log.level=debug"
- "-store-gateway.sharding-ring.replication-factor=3"
env:
Expand Down Expand Up @@ -2388,7 +2388,7 @@ spec:
subPath: compactor
resources:
limits:
memory: 16Gi
memory: 8Gi
requests:
cpu: 4
memory: 8Gi
Expand Down Expand Up @@ -2848,7 +2848,7 @@ metadata:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: "query-worker"
spec:
replicas: 3
replicas: 8
selector:
matchLabels:
app.kubernetes.io/name: pyroscope
Expand Down Expand Up @@ -2892,7 +2892,7 @@ spec:
- "-metastore.raft.advertise-address=$(POD_NAME).pyroscope-dev-metastore-headless.default.svc.cluster.local.:9099"
- "-metastore.raft.server-id=$(POD_NAME).pyroscope-dev-metastore-headless.default.svc.cluster.local.:9099"
- "-metastore.raft.bootstrap-peers=dnssrvnoa+_raft._tcp.pyroscope-dev-metastore-headless.default.svc.cluster.local.:9099"
- "-metastore.raft.bootstrap-expect-peers=3"
- "-metastore.raft.bootstrap-expect-peers=8"
- "-metastore.address=dns:///_grpc._tcp.pyroscope-dev-metastore-headless.default.svc.cluster.local.:9095"
- "-query-backend.address=dns:///pyroscope-dev-query-worker-headless.default.svc.cluster.local.:9095"
- "-config.file=/etc/pyroscope/config.yaml"
Expand Down Expand Up @@ -2928,9 +2928,9 @@ spec:
mountPath: /data
resources:
limits:
memory: 16Gi
memory: 8Gi
requests:
cpu: 4
cpu: 2
memory: 8Gi
volumes:
- name: config
Expand Down
12 changes: 6 additions & 6 deletions operations/pyroscope/helm/pyroscope/values-micro-services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,21 @@ pyroscope:
cpu: 100m
query-worker:
kind: Deployment
replicaCount: 3
replicaCount: 8
resources:
limits:
memory: 16Gi
memory: 8Gi
requests:
memory: 8Gi
cpu: 4
cpu: 2
compaction-worker:
extraArgs:
compaction-worker.job-capacity: 40
compaction-worker.job-capacity: 5
kind: Deployment
replicaCount: 32
replicaCount: 4
resources:
limits:
memory: 16Gi
memory: 8Gi
requests:
memory: 8Gi
cpu: 4
Expand Down
12 changes: 6 additions & 6 deletions operations/pyroscope/jsonnet/values-micro-services.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
"components": {
"compaction-worker": {
"extraArgs": {
"compaction-worker.job-capacity": 40
"compaction-worker.job-capacity": 5
},
"kind": "Deployment",
"replicaCount": 32,
"replicaCount": 4,
"resources": {
"limits": {
"memory": "16Gi"
"memory": "8Gi"
},
"requests": {
"cpu": 4,
Expand Down Expand Up @@ -123,13 +123,13 @@
},
"query-worker": {
"kind": "Deployment",
"replicaCount": 3,
"replicaCount": 8,
"resources": {
"limits": {
"memory": "16Gi"
"memory": "8Gi"
},
"requests": {
"cpu": 4,
"cpu": 2,
"memory": "8Gi"
}
}
Expand Down
Loading
Loading