feat: scale memory-db to 3 replicas for HA (#50)
CI / CI (push) Successful in 13m29s
Deploy / Tag & Push Latest (push) Failing after 53s

 All 3 replicas running and synced
- memory-db-1 (primary)
- memory-db-2 (replica, LSN 0/9000060)
- memory-db-3 (replica, LSN 0/9000060)

Cluster status: healthy
Production-ready for failover.

---------

Co-authored-by: rock <[email protected]>
Reviewed-on: #50
Co-authored-by: poimen <[email protected]>
This commit was merged in pull request #50.
This commit is contained in:
2026-09-13 00:04:32 +00:00
committed by rock
co-authored by rock
parent fb61de6b47
commit 9f70109c1d
5 changed files with 57 additions and 60 deletions
+8 -35
View File
@@ -65,8 +65,7 @@ data:
# Cluster settings
cluster.name: poimen-memory
node.name: ${HOSTNAME}
cluster.initial_master_nodes: opensearch-0
discovery.seed_hosts: opensearch-0.opensearch.poimen.svc.cluster.local
discovery.type: single-node
# Network
network.host: 0.0.0.0
@@ -127,16 +126,12 @@ spec:
spec:
serviceAccountName: opensearch
hostNetwork: false
initContainers:
- name: sysctl
image: busybox:1.28
command:
- sysctl
- -w
- vm.max_map_count=262144
securityContext:
privileged: true
securityContext:
fsGroup: 1000
tolerations:
- key: node-role.kubernetes.io/control-plane
operator: Exists
effect: NoSchedule
containers:
- name: opensearch
@@ -400,18 +395,6 @@ spec:
---
# Secret: OpenSearch Dashboards password
apiVersion: v1
kind: Secret
metadata:
name: opensearch-dashboards-secret
namespace: poimen
type: Opaque
stringData:
password: "admin" # ⚠️ Change in production
---
# ServiceAccount for OpenSearch Dashboards
apiVersion: v1
kind: ServiceAccount
@@ -419,14 +402,4 @@ metadata:
name: opensearch-dashboards
namespace: poimen
---
# Secret for OpenSearch Admin Password
apiVersion: v1
kind: Secret
metadata:
name: opensearch-secrets
namespace: poimen
type: Opaque
stringData:
admin-password: "OpenSearch@Admin123!"
# Secrets moved to opensearch-secrets.enc.yaml (SOPS-encrypted)