-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhh_stolon.txt
56 lines (44 loc) · 1.17 KB
/
hh_stolon.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Si el keeper slave no sincroniza y se queda esperando al wal o al checkpoint del master, conectar al master actual y ejecutar:
```bash
CHECKPOINT;
```
# Display the current cluster status
$stolonctl --cluster-name=postgres --store-backend=kubernetes --kube-resource-kind=configmap status
# Update pg parámeters
$stolonctl --cluster-name=postgres --store-backend=kubernetes --kube-resource-kind=configmap update --patch '{ "pgParameters" : {"effective_cache_size" : "15GB" }}'
# Manage current cluster data
```SQL
stolonctl clusterdata
```
# Force keeper as "temporarily" failed. The sentinel will compute a new clusterdata considering it as failed and then restore its state to the ```SQL
real
```
stolonctl failkeeper
# Initialize a new clusterone.
```SQL
stolonctl init
```
# Promotes a standby cluster to a primary cluster
```SQL
stolonctl promote
```
# Register stolon keepers for service discovery
```SQL
stolonctl register
```
# Removes keeper from cluster data
```SQL
stolonctl removekeeper
```
# Retrieve the current cluster specification
```SQL
stolonctl spec
```
# Update a cluster specification
```SQL
stolonctl update
```
# Display the version
```SQL
stolonctl version
```