Automatic optimisation for ingest chunking based on processed messages

This commit is contained in:
2025-01-23 11:29:48 +00:00
parent 1aeadaf3b7
commit 1cc2ef629e
3 changed files with 85 additions and 61 deletions

View File

@@ -2,17 +2,14 @@ version: "2.2"
services:
app:
image: pathogen/monolith:latest
image: xf/monolith:latest
container_name: monolith
build: .
volumes:
- ${PORTAINER_GIT_DIR}:/code
# env_file:
# - stack.env
networks:
- default
- xf
- db
- type: bind
source: /code/run
target: /var/run
environment:
PORTAINER_GIT_DIR: "${PORTAINER_GIT_DIR}"
MODULES_ENABLED: "${MODULES_ENABLED}"
@@ -49,41 +46,22 @@ services:
MONOLITH_PROCESS_PERFSTATS: "${MONOLITH_PROCESS_PERFSTATS}"
MONOLITH_CH4_BOARDS: "${MONOLITH_CH4_BOARDS}"
REDIS_PASSWORD: "${REDIS_PASSWORD}"
MONOLITH_INGEST_INCREASE_BELOW: "${MONOLITH_INGEST_INCREASE_BELOW}"
MONOLITH_INGEST_INCREASE_BY: "${MONOLITH_INGEST_INCREASE_BY}"
MONOLITH_INGEST_DECREASE_ABOVE: "${MONOLITH_INGEST_DECREASE_ABOVE}"
MONOLITH_INGEST_DECREASE_BY: "${MONOLITH_INGEST_DECREASE_BY}"
MONOLITH_INGEST_MAX: "${MONOLITH_INGEST_MAX}"
MONOLITH_INGEST_MIN: "${MONOLITH_INGEST_MIN}"
deploy:
resources:
limits:
cpus: '0.5'
memory: 1.0G
network_mode: host
db:
#image: pathogen/manticore:kibana
image: manticoresearch/manticore:dev
container_name: monolith_db
#build:
# context: ./docker/manticore
# args:
# DEV: 1
restart: always
ports:
- 9308
- 9312
- 9306
ulimits:
nproc: 65535
nofile:
soft: 65535
hard: 65535
memlock:
soft: -1
hard: -1
environment:
# - MCL=1
- EXTRA=1
networks:
- default
- xf
- db
volumes:
- ./docker/data:/var/lib/manticore
# - ./docker/manticore.conf:/etc/manticoresearch/manticore.conf
# threshold:
# image: pathogen/threshold:latest
# image: xf/threshold:latest
# container_name: threshold
# build: legacy/docker
# volumes:
@@ -148,16 +126,17 @@ services:
- "1289:1289"
environment:
- SSDB_PORT=1289
networks:
- default
- db
# tmp:
# image: busybox
# container_name: tmp_monolith
# command: chmod -R 777 /var/run/socks
# volumes:
# - /var/run/socks
volumes:
- monolith_ssdb_data:/var/lib/ssdb
# networks:
# - default
# - db
deploy:
resources:
limits:
cpus: '0.5'
memory: 1.0G
network_mode: host
redis:
image: redis
@@ -171,6 +150,9 @@ services:
volumes:
- ${PORTAINER_GIT_DIR}/docker/redis.conf:/etc/redis.conf
- monolith_redis_data:/data
- type: bind
source: /code/run
target: /var/run
# volumes_from:
# - tmp
healthcheck:
@@ -178,18 +160,25 @@ services:
interval: 2s
timeout: 2s
retries: 15
networks:
- default
- xf
- db
# networks:
# - default
# - xf
# - db
deploy:
resources:
limits:
cpus: '0.5'
memory: 1.0G
network_mode: host
networks:
default:
driver: bridge
xf:
external: true
db:
external: true
# networks:
# default:
# driver: bridge
# xf:
# external: true
# db:
# external: true
volumes:
monolith_redis_data:
monolith_ssdb_data: