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

Conductor locking, increase CPU resource limits #306

Merged
merged 1 commit into from
Feb 20, 2023
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
12 changes: 8 additions & 4 deletions composefiles/swarm-workflow-manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ x-placement: &placement
x-traefik-label: &traefik_labels
- traefik.enable=false

x-tcp_keepalive: &tcp_keepalive
net.ipv4.tcp_keepalive_time: 300

x-wfm-enabled: &wfm-enabled
WORKFLOW_MANAGER_ENABLED=true
x-uniconfig-enabled: &uniconfig-enabled
Expand All @@ -38,7 +41,7 @@ x-dt-enabled: &dt-enabled

services:
krakend:
image: frinx/krakend:latest
image: frinx/krakend:1.0.5
# user: root
logging: *logging_loki
environment:
Expand All @@ -65,7 +68,6 @@ services:
- *uniconfig-enabled
- *l3vpn-enabled
- *dt-enabled

volumes:
- ${UF_CONFIG_PATH}/krakend:/etc/krakend:ro
secrets:
Expand Down Expand Up @@ -115,7 +117,7 @@ services:
memory: ${KD_RES_LIMIT_MEM}

conductor-server:
image: frinx/conductor-server:stable-1.0.X
image: frinx/conductor-server:2.0.1
# user: guest
logging: *logging_loki
environment:
Expand Down Expand Up @@ -148,7 +150,7 @@ services:
cap_drop:
- all
sysctls:
net.ipv4.tcp_keepalive_time: 300
<<: *tcp_keepalive
deploy:
labels: *traefik_labels
<<: *placement
Expand Down Expand Up @@ -194,6 +196,8 @@ services:
hard: -1
cap_drop:
- all
sysctls:
<<: *tcp_keepalive
deploy:
labels: *traefik_labels
<<: *placement
Expand Down
27 changes: 22 additions & 5 deletions config/conductor/config.properties
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,19 @@ conductor.additional.modules=com.netflix.conductor.contribs.metrics.MetricsRegis
conductor.metrics-logger.enabled=true
conductor.metrics-logger.reportPeriodSeconds=15

conductor.metrics-datadog.enabled=false
conductor.metrics-logger.enable=false
conductor.metrics-prometheus.enabled=false
# Load sample kitchen sink workflow
loadSample=false

# Increase payload threshold limits for transferring big schemas to PostgreSQL
conductor.app.workflowInputPayloadSizeThreshold=25
conductor.app.workflowOutputPayloadSizeThreshold=25
conductor.app.workflowInputPayloadSizeThreshold=85
conductor.app.workflowOutputPayloadSizeThreshold=85
conductor.app.maxWorkflowInputPayloadSizeThreshold=1024000
conductor.app.maxWorkflowOutputPayloadSizeThreshold=1024000
conductor.app.taskInputPayloadSizeThreshold=25
conductor.app.taskOutputPayloadSizeThreshold=25
conductor.app.taskInputPayloadSizeThreshold=85
conductor.app.taskOutputPayloadSizeThreshold=85
conductor.app.maxTaskInputPayloadSizeThreshold=1024000
conductor.app.maxTaskOutputPayloadSizeThreshold=1024000

Expand All @@ -54,4 +57,18 @@ conductor.external-payload-storage.postgres.max-data-days=0
conductor.external-payload-storage.postgres.max-data-months=0
conductor.external-payload-storage.postgres.max-data-years=1

conductor.app.taskExecutionPostponeDuration=0
conductor.app.taskExecutionPostponeDuration=0

#### Performance / timer tweaks ####
conductor.app.systemTaskWorkerCallbackDuration=10
conductor.app.workflowOffsetTimeout=10

# local only lock works only with a single conductor instance NOT in an HA setup
conductor.workflow-execution-lock.type=local_only
conductor.app.workflowExecutionLockEnabled=true


conductor.workflow-repair-service.enabled=false

# management.security.enabled=false
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration
2 changes: 1 addition & 1 deletion config/dev_settings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ CS_ULIMIT_NOFILE_SOFT=65535
CS_ULIMIT_NOFILE_HARD=65535
CS_ULIMIT_NPROC_SOFT=5000
CS_ULIMIT_NPROC_HARD=5000
CS_RES_LIMIT_CPUS=2
CS_RES_LIMIT_CPUS=4
CS_RES_LIMIT_MEM=4G

ES_ULIMIT_NOFILE_SOFT=65535
Expand Down
2 changes: 1 addition & 1 deletion config/high_settings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ CS_ULIMIT_NOFILE_SOFT=65535
CS_ULIMIT_NOFILE_HARD=65535
CS_ULIMIT_NPROC_SOFT=5000
CS_ULIMIT_NPROC_HARD=5000
CS_RES_LIMIT_CPUS=2
CS_RES_LIMIT_CPUS=4
CS_RES_LIMIT_MEM=11G

ES_ULIMIT_NOFILE_SOFT=65535
Expand Down
2 changes: 1 addition & 1 deletion config/prod_settings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ CS_ULIMIT_NOFILE_SOFT=65535
CS_ULIMIT_NOFILE_HARD=65535
CS_ULIMIT_NPROC_SOFT=5000
CS_ULIMIT_NPROC_HARD=5000
CS_RES_LIMIT_CPUS=2
CS_RES_LIMIT_CPUS=4
CS_RES_LIMIT_MEM=4G

ES_ULIMIT_NOFILE_SOFT=65535
Expand Down