Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/redis ha #29

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ See more detail about install RabbitMQ via Helm [here](https://github.com/helm/c

### 3. Deploy Redis

To install the Redis to your cluster, run the following command:
To install the Redis to your cluster, run the following commands:

```bash
$ helm install redis stable/redis \
--set cluster.enabled=false \
--set usePassword=false
$ helm repo add dandydev https://dandydeveloper.github.io/charts
$ helm repo update
$ helm install redis-ha -f values/redis.yaml dandydev/redis-ha
```

See more detail about install Redis via Helm [here](https://github.com/helm/charts/tree/master/stable/redis#redis).
See more detail about install Redis via Helm [here](https://github.com/DandyDeveloper/charts/tree/master/charts/redis-ha).

### 4. Deploy PostgreSQL

Expand Down
2 changes: 1 addition & 1 deletion configmaps/documentserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ data:
DB_USER: postgres
DB_HOST: postgresql
DB_PORT: "5432"
REDIST_SERVER_HOST: redis-master
REDIST_SERVER_HOST: redis-ha-haproxy
AMQP_HOST: rabbitmq
AMQP_USER: user
AMQP_PROTO: amqp
Expand Down
12 changes: 12 additions & 0 deletions values/redis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
haproxy:
enabled: true
replicas: 1
sysctlImage:
enabled: true
mountHostSys: true
command:
- /bin/sh
- -xc
- |-
sysctl -w net.core.somaxconn=10000
echo never > /host-sys/kernel/mm/transparent_hugepage/enabled