Guest User

Untitled

a guest
May 16th, 2018
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. $primary_members = libadi_members("f5test/data/f5_pool/candlepin_mysql/qa/members_primary.yaml")
  2. libadi::balancer::mysql {'candlepin_mysql_primary':
  3. # port => 3306, # This is default,
  4. member => $primary_members,
  5. # We need TCP resets to be sent to help misbehaving connection pools
  6. action_on_service_down => 'SERVICE_DOWN_ACTION_RESET',
  7. # This is for priority group activation
  8. minimum_active_member => 1,
  9. # In this case using priority group activation means the lb_method doesn't really matter
  10. lb_method => 'LB_METHOD_ROUND_ROBIN',
  11. monitor_templates => ['candlepin_mysql'],
  12. }
  13.  
  14. libadi::monitor::mysql {'candlepin_mysql':
  15. interval => 5,
  16. # timeout => 16, # This is calculated
  17. # We must have manual resume. Just because the check starts passing
  18. # doesn't mean that replication is working
  19. # manual_resume_state => 'STATE_ENABLED', # This is default
  20. username => "${candlepin::variables::candlepin_ds_user}-debug",
  21. database => $candlepin::variables::candlepin_ds_name,
  22. #password => $passwords::xxxxxxxxxxxxxx,
  23. password => "xxxxxxxxxxxx",
  24. send => "select count(*) from cp_consumer_type\\r\\n",
  25. receive => "",
  26. count => "0",
  27. target => ['edge', 'dist'],
  28. }
Add Comment
Please, Sign In to add comment