Skip to content

Commit 44ebb33

Browse files
author
Yannic Nevado Hidalgo
committed
delete unused files
1 parent f0003c4 commit 44ebb33

File tree

5 files changed

+8
-84
lines changed

5 files changed

+8
-84
lines changed

Readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22

33
This repository contains a custom setup for an [HA](https://www.postgresql.org/docs/current/high-availability.html) [Postgres](https://www.postgresql.org/) cluster, based on [Postgres Operator](https://github.com/zalando/postgres-operator) from [Patroni](https://github.com/zalando/spilo). The manifest folder only contains the minimum needed YAML files for the setup.
44

5-
The Cluster runs on an [K8s](https://kubernetes.io/) Cluster which is managed by [Rancher](https://rancher.com/) and hosted at the infrastructure of Proventa AG.
5+
The Cluster runs on an [K8s](https://kubernetes.io/) Cluster which is managed by [Rancher](https://rancher.com/).
66

77

88
## Setup on K8s cluster(Rancher)
99

1010
* *Projectname:* zalando-postgres
1111
* *Namespace:* zalando-postgres
1212
* *4 Nodes*(per Node 4Cores and 8GB RAM)
13-
* master and three worker nodes
13+
* 3 master and 3 worker nodes
1414
* *Storage Provisioner*: Longhorn
1515
* Cluster and PVC Snapshots to [minio](https://min.io/)
1616
* *LoadBalancer:* [Metallb](https://metallb.universe.tf)
17-
* access actual Postgres master over external-IP and specified port
17+
* access actual Postgres master and standbys over external-IP and specified port
1818
* required VPN connection!!
1919

2020
## Installation

manifests/standby-manifest.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.

manifests/user-facing-clusterroles.yaml

Lines changed: 0 additions & 51 deletions
This file was deleted.

patroni/Readme.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
2-
3-
4-
5-
6-
71
# Using Patroni Service
82

9-
* Execute Shell on Pod
103
* List all cluster members
11-
* `patronictl -c /home/postgres/.config/patroni/patronictl.yaml list`
4+
* `patronictl -c postgres.yml list`
125
* Execute switchover
13-
* `patronictl -c /home/postgres/.config/patroni/patronictl.yaml switchover`
6+
* `patronictl -c postgres.yml switchover`

pg_bench

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ $ psql -d postgres -U postgres -c "CREATE DATABASE test"
66
# -i = initialize
77
# -s = scale default database value(16MB) * 50 = 800MB
88
# time = measure the time for executing the command
9-
$ time pgbench -i -s 50 test -U postgres (~30min 51sec.)
9+
# -i = 100 ~ 32min; -i = 200 ~ 62min
10+
$ time pgbench -i -s 50 test -U postgres (~18min.)
1011

1112
table # of rows
1213
---------------------------------
@@ -15,6 +16,7 @@ pgbench_tellers 500
1516
pgbench_accounts 5.000.000
1617
pgbench_history 0
1718

19+
1820
# c = clients -> number of clients to connect with
1921
# j = threads -> number of worker processes for pgbench
2022
# t = transactions -> number of transactions per client session => 10*100.000 = 1.000.000 transactions

0 commit comments

Comments
 (0)