aldikhan13

rabbitmq conifg

Aug 23rd, 2025
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.10 KB | None | 0 0
  1. # ================ Cluster Configuration ================
  2. # cluster_name = rabbitmq_prod
  3. # cluster_partition_handling = autoheal
  4. # cluster_formation.peer_discovery_backend = rabbit_peer_discovery_classic_config
  5. # cluster_formation.classic_config.nodes.1 = rabbit@node1
  6. # cluster_formation.classic_config.nodes.2 = rabbit@node2
  7.  
  8. # ================ Memory and Disk Management (Optimized) ================
  9. vm_memory_high_watermark.absolute = 8GB
  10. vm_memory_high_watermark.relative = 0.7
  11. vm_memory_calculation_strategy = allocated
  12. vm_memory_high_watermark_paging_ratio = 0.25
  13.  
  14. disk_free_limit.absolute = 20GB
  15. disk_free_limit.relative = 1.0
  16. queue_index_embed_msgs_below = 65536
  17.  
  18. # ================ Networking and Heartbeat (Enhanced) ================
  19. heartbeat = 60
  20. tcp_listen_options.backlog = 1024
  21. tcp_listen_options.nodelay = true
  22. tcp_listen_options.keepalive = true
  23. tcp_listen_options.exit_on_close = false
  24. handshake_timeout = 30000
  25.  
  26. # ================ Security (Production Hardening) ================
  27. # auth_backends.1 = internal
  28. # auth_backends.2 = ldap
  29. # ssl_options.cacertfile = /path/to/ca_certificate.pem
  30. # ssl_options.certfile = /path/to/server_certificate.pem
  31. # ssl_options.keyfile = /path/to/server_key.pem
  32. # ssl_options.verify = verify_peer
  33. # ssl_options.fail_if_no_peer_cert = true
  34. # ssl_options.versions.1 = tlsv1.2
  35. password_hashing_module = rabbit_password_hashing_sha256
  36. default_user_tags.administrator = true
  37.  
  38. # ================ Logging (Comprehensive) ================
  39. log.dir = /var/log/rabbitmq/
  40. log.file = rabbitmq.log
  41. log.file.level = warning
  42. log.file.rotation.count = 10
  43. log.console = false
  44. log.connection.level = error
  45. log.channel.level = error
  46. log.queue.level = info
  47. log.mirroring.level = info
  48.  
  49. # ================ Performance Tuning (Optimized) ================
  50. channel_max = 16384
  51. frame_max = 2147483648
  52. connection_max = 2000
  53. collect_statistics = fine
  54. collect_statistics_interval = 30000
  55. background_gc_enabled = true
  56. background_gc_target_interval = 60000
  57.  
  58. # ================ Resource Management ================
  59. max_message_size = 134217728
  60. channel_max_per_node = 5000
Advertisement
Add Comment
Please, Sign In to add comment