Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $primary_members = libadi_members("f5test/data/f5_pool/candlepin_mysql/qa/members_primary.yaml")
- libadi::balancer::mysql {'candlepin_mysql_primary':
- # port => 3306, # This is default,
- member => $primary_members,
- # We need TCP resets to be sent to help misbehaving connection pools
- action_on_service_down => 'SERVICE_DOWN_ACTION_RESET',
- # This is for priority group activation
- minimum_active_member => 1,
- # In this case using priority group activation means the lb_method doesn't really matter
- lb_method => 'LB_METHOD_ROUND_ROBIN',
- monitor_templates => ['candlepin_mysql'],
- }
- libadi::monitor::mysql {'candlepin_mysql':
- interval => 5,
- # timeout => 16, # This is calculated
- # We must have manual resume. Just because the check starts passing
- # doesn't mean that replication is working
- # manual_resume_state => 'STATE_ENABLED', # This is default
- username => "${candlepin::variables::candlepin_ds_user}-debug",
- database => $candlepin::variables::candlepin_ds_name,
- #password => $passwords::xxxxxxxxxxxxxx,
- password => "xxxxxxxxxxxx",
- send => "select count(*) from cp_consumer_type\\r\\n",
- receive => "",
- count => "0",
- target => ['edge', 'dist'],
- }
Add Comment
Please, Sign In to add comment