~jseutter/charms/precise/haproxy/trunk

« back to all changes in this revision

Viewing changes to config.yaml

  • Committer: Marco Ceppi
  • Date: 2013-10-17 03:33:47 UTC
  • mfrom: (60.1.27 haproxy)
  • Revision ID: marco@ceppi.net-20131017033347-7ha6tdiivmpardtx
[sidnei] The 'all_services' config now supports a static list of servers to be used *in addition* to the ones provided via relation.
[sidnei] When more than one haproxy units exist, the configured service is upgraded in-place to a mode where traffic is routed to a single haproxy unit (the first one in unit-name order) and the remaining ones are configured as 'backup'. This is done to allow the enforcement of a 'maxconn' session in the configured services, which would not be possible to enforce otherwise.
[sidnei] Changes to the configured services are properly propagated to the upstream relation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
        restarting, a turn-around timer of 1 second is applied before a retry
60
60
        occurs.
61
61
  default_timeouts:
62
 
    default: "queue 1000, connect 1000, client 1000, server 1000"
 
62
    default: "queue 20000, client 50000, connect 5000, server 50000"
63
63
    type: string
64
64
    description: Default timeouts 
65
65
  enable_monitoring:
90
90
    default: 3
91
91
    type: int
92
92
    description: Monitoring interface refresh interval (in seconds)
 
93
  package_status:
 
94
    default: "install"
 
95
    type: "string"
 
96
    description: |
 
97
        The status of service-affecting packages will be set to this value in the dpkg database.
 
98
        Useful valid values are "install" and "hold".
93
99
  services:
94
100
    default: |
95
101
              - service_name: haproxy_service
106
112
        before the first variable, service_name, as above. Service options is a
107
113
        comma separated list, server options will be appended as a string to
108
114
        the individual server lines for a given listen stanza.
 
115
  sysctl:
 
116
    default: ""
 
117
    type: string
 
118
    description: >
 
119
      YAML-formatted list of sysctl values, e.g.:
 
120
      '{ net.ipv4.tcp_max_syn_backlog : 65536 }'
109
121
  nagios_context:
110
122
    default: "juju"
111
123
    type: string