Enable connection pooler for replica

- Refactor code for connection pooler deployment and services
- Refactor sync code for connection pooler
- Rename EnableConnectionPooler to EnableMasterConnectionPooler
- Update yamls and tests
This commit is contained in:
Rafia Sabih
2020-09-02 13:46:36 +02:00
parent 83ddd5c85b
commit fb49376085
19 changed files with 296 additions and 161 deletions
+2 -2
View File
@@ -99,7 +99,7 @@ class EndToEndTestCase(unittest.TestCase):
'postgresqls', 'acid-minimal-cluster',
{
'spec': {
'enableConnectionPooler': True,
'enableMasterConnectionPooler': True,
}
})
k8s.wait_for_pod_start(pod_selector)
@@ -141,7 +141,7 @@ class EndToEndTestCase(unittest.TestCase):
'postgresqls', 'acid-minimal-cluster',
{
'spec': {
'enableConnectionPooler': False,
'enableMasterConnectionPooler': False,
}
})
k8s.wait_for_pods_to_stop(pod_selector)