Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Very Demiurge Very Mindful
Kolla Ansible
Commits
4971eccd
Commit
4971eccd
authored
2 years ago
by
Zuul
Committed by
Gerrit Code Review
2 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Set RabbitMQ message TTL and queue expiry"
parents
ad744874
fd30dfb8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ansible/roles/rabbitmq/defaults/main.yml
+4
-2
4 additions, 2 deletions
ansible/roles/rabbitmq/defaults/main.yml
releasenotes/notes/rabbitmq-set-message-ttl-and-queue-expiry-90c16da5e14c0265.yaml
+12
-0
12 additions, 0 deletions
...mq-set-message-ttl-and-queue-expiry-90c16da5e14c0265.yaml
with
16 additions
and
2 deletions
ansible/roles/rabbitmq/defaults/main.yml
+
4
−
2
View file @
4971eccd
...
...
@@ -100,9 +100,11 @@ rabbitmq_ha_promote_on_shutdown:
rabbitmq_server_count
:
"
{{
groups[role_rabbitmq_groups]
|
length
}}"
rabbitmq_ha_replica_count
:
"
{{
(rabbitmq_server_count
|
int
//
2
+
1)
}}"
# If no TTL is specified, messages will not expire
rabbitmq_message_ttl_ms
:
# Set max message ttl to 10 mins (more than 1 min rpc timeout)
# so we don't have queues with no consumers growing unbounded
rabbitmq_message_ttl_ms
:
600000
# If no queue expiry is specified, queues will not expire
rabbitmq_queue_expiry_ms
:
rabbitmq_queue_expiry_ms
:
3600000
rabbitmq_extra_config
:
{}
####################
...
...
This diff is collapsed.
Click to expand it.
releasenotes/notes/rabbitmq-set-message-ttl-and-queue-expiry-90c16da5e14c0265.yaml
0 → 100644
+
12
−
0
View file @
4971eccd
---
upgrade
:
-
|
In RabbitMQ, messages now have a TTL of 10 minutes and inactive queues will
expire after 1 hour. These queue arguments can be changed dynamically at
runtime [1], but it should be noted that applying a TTL to queues which
already have messages will discard the messages when specific events occur.
See [2] for more details. Note that the contents of the RabbitMQ
definitions.json are now changed, meaning RabbitMQ containers will be
restarted on next deploy/upgrade.
[1] https://www.rabbitmq.com/queues.html#optional-arguments
[2] https://www.rabbitmq.com/ttl.html#per-message-ttl-caveats
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment