~mthaddon/mojo/vault-charm-testing-spec

« back to all changes in this revision

Viewing changes to charm-testing/pgbouncer/deploy

  • Committer: Tom Haddon
  • Date: 2018-02-20 10:39:22 UTC
  • mfrom: (82.1.2 pgbouncer-charm-testing)
  • Revision ID: tom.haddon@canonical.com-20180220103922-cuyyrhdjywol52f4
[mthaddon,r=stub] Add pgbouncer charm testing

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
postgresql:
 
2
    series: {{series}}
 
3
    services:
 
4
        admin-client:
 
5
            charm: postgresql-client
 
6
        client:
 
7
            charm: postgresql-client
 
8
        postgresql:
 
9
            charm: postgresql
 
10
        pgbouncer:
 
11
            charm: pgbouncer
 
12
        nrpe:
 
13
            charm: nrpe
 
14
            {% if series == "xenial" %}options:
 
15
                procs: '-w 200 -c 250'
 
16
                swap: '-w 90% -c 75% -n ok'{% endif %}
 
17
    relations:
 
18
       - ["postgresql", "nrpe:nrpe-external-master"]     
 
19
       - ["pgbouncer", "nrpe:nrpe-external-master"]
 
20
       - ["postgresql:db-admin", "pgbouncer:backend-db-admin"]
 
21
       - ["pgbouncer:db-admin", "admin-client:db-admin"]
 
22
       - ["pgbouncer:db", "client:db"]