Skip to content

Commit

Permalink
Change default LokiStack size to 1x.pico
Browse files Browse the repository at this point in the history
OpenShift Logging 6.1 comes with a new size for the LokiStack.
This will use the new size 1x.pico as default.
  • Loading branch information
DebakelOrakel committed Jan 20, 2025
1 parent f80661a commit bcf7df9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 35 deletions.
7 changes: 1 addition & 6 deletions class/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ parameters:
endpoint: ''
bucketnames: '${cluster:name}-logstore'
spec:
size: 1x.demo
size: 1x.pico
storage:
schemas:
- version: v12
Expand All @@ -40,11 +40,6 @@ parameters:
storageClassName: ''
tenants:
mode: openshift-logging
limits:
global:
ingestion:
ingestionBurstSize: 9
ingestionRate: 5
logmetrics:
enabled: false
spec:
Expand Down
9 changes: 8 additions & 1 deletion component/log_lokistack.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,15 @@ local po = import 'lib/patch-operator.libsonnet';
local inv = kap.inventory();
local loki = inv.parameters.openshift4_logging.components.lokistack;


local lokistack_spec = {
[if loki.spec.size == '1x.demo' then 'limits']: {
global: {
ingestion: {
ingestionBurstSize: 9,
ingestionRate: 5,
},
},
},
template: {
compactor: {
[if loki.spec.size == '1x.demo' then 'replicas']: 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,7 @@ metadata:
name: loki
name: loki
spec:
limits:
global:
ingestion:
ingestionBurstSize: 9
ingestionRate: 5
size: 1x.demo
size: 1x.pico
storage:
schemas:
- effectiveDate: '2022-06-01'
Expand All @@ -28,34 +23,26 @@ spec:
compactor:
nodeSelector:
node-role.kubernetes.io/infra: ''
replicas: 1
distributor:
nodeSelector:
node-role.kubernetes.io/infra: ''
replicas: 2
gateway:
nodeSelector:
node-role.kubernetes.io/infra: ''
replicas: 2
indexGateway:
nodeSelector:
node-role.kubernetes.io/infra: ''
replicas: 2
ingester:
nodeSelector:
node-role.kubernetes.io/infra: ''
replicas: 2
querier:
nodeSelector:
node-role.kubernetes.io/infra: ''
replicas: 2
queryFrontend:
nodeSelector:
node-role.kubernetes.io/infra: ''
replicas: 2
ruler:
nodeSelector:
node-role.kubernetes.io/infra: ''
replicas: 1
tenants:
mode: openshift-logging
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,7 @@ metadata:
name: loki
name: loki
spec:
limits:
global:
ingestion:
ingestionBurstSize: 9
ingestionRate: 5
size: 1x.demo
size: 1x.pico
storage:
schemas:
- effectiveDate: '2022-06-01'
Expand All @@ -28,34 +23,26 @@ spec:
compactor:
nodeSelector:
node-role.kubernetes.io/infra: ''
replicas: 1
distributor:
nodeSelector:
node-role.kubernetes.io/infra: ''
replicas: 2
gateway:
nodeSelector:
node-role.kubernetes.io/infra: ''
replicas: 2
indexGateway:
nodeSelector:
node-role.kubernetes.io/infra: ''
replicas: 2
ingester:
nodeSelector:
node-role.kubernetes.io/infra: ''
replicas: 2
querier:
nodeSelector:
node-role.kubernetes.io/infra: ''
replicas: 2
queryFrontend:
nodeSelector:
node-role.kubernetes.io/infra: ''
replicas: 2
ruler:
nodeSelector:
node-role.kubernetes.io/infra: ''
replicas: 1
tenants:
mode: openshift-logging

0 comments on commit bcf7df9

Please sign in to comment.