-
Notifications
You must be signed in to change notification settings - Fork 80
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
How to use advanced functions? #42
Comments
You must enable Prometheus in system settings. Swirl use service labels to support autoscaling. For example: |
docker service create \
--name control_dutall-cloud-control-api-impl \
--publish mode=ingress,target=9098,published=5004,protocol=tcp \
--env 'JARMEM=512M' \
--env 'JARPORT=9098' \
--label 'swirl.scale=min=1,max=5,cpu=1:100' \
--container-label 'com.docker.stack.namespace=control' \
--mount type=volume,source=vl_dutalljava,destination=/home/log/ \
--update-parallelism 1 \
--update-delay 1m0s \
--update-failure-action pause \
--update-order stop-first \
--rollback-parallelism 1 \
--rollback-delay 10s \
--rollback-failure-action pause \
--rollback-order stop-first \
--restart-condition on-failure \
--restart-delay 5s \
--restart-max-attempts 2 \
--restart-window 2m0s \
dutall-cloud-control-api-impl:test-18 问题:
|
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't know where to configure service elastic scaling. Can you write a specific exampl?
The text was updated successfully, but these errors were encountered: