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

chore: patroni memory #214

Merged
merged 2 commits into from
Jan 14, 2025
Merged
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
5 changes: 2 additions & 3 deletions Dockerfile-test
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ RUN apk add --no-cache \
curl \
gcc \
libressl-dev \
openssl-dev \
musl-dev \
libffi-dev && \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal && \
Expand All @@ -21,8 +20,7 @@ RUN apk add --no-cache \
gcc \
libressl-dev \
musl-dev \
libffi-dev \
openssl-dev
libffi-dev

COPY ./pyproject.toml .
COPY ./poetry.lock .
Expand All @@ -38,6 +36,7 @@ ENV PYTHON_ENV=test
ENV DOMAIN_NAME=localhost
ENV ACTIVE_IP=1.1.1.1
ENV PASSIVE_IP=2.2.2.2
ENV NAMESPACE=e4ca1d-dev

ENTRYPOINT ["poetry", "run"]
CMD ["python", "src/main.py"]
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,13 @@ patroni:
transportServerClaim:
enabled: true

resources:
limits:
cpu: 500m
memory: 3Gi
requests:
cpu: 50m
memory: 1.5Gi

rollingUpdate:
maxSurge: 1
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,11 @@ patroni:

transportServerClaim:
enabled: true

resources:
limits:
cpu: 500m
memory: 3Gi
requests:
cpu: 50m
memory: 1.5Gi
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,13 @@ patroni:
transportServerClaim:
enabled: false

resources:
limits:
cpu: 500m
memory: 3Gi
requests:
cpu: 50m
memory: 1.5Gi

rollingUpdate:
maxSurge: 1
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,11 @@ patroni:

transportServerClaim:
enabled: false

resources:
limits:
cpu: 500m
memory: 3Gi
requests:
cpu: 50m
memory: 1.5Gi