Slackbot
06/09/2023, 7:47 AMRaz Co
06/09/2023, 7:51 AMBen Wallis
06/09/2023, 7:54 AMBen Wallis
06/09/2023, 7:57 AMBen Wallis
06/09/2023, 8:59 AMBen Wallis
06/09/2023, 9:14 AMBen Wallis
06/09/2023, 9:15 AMps aux | grep gunicorn
from the k8s node - all the gunicorn PIDs are constantly changing except one of them)Ben Wallis
06/09/2023, 9:15 AMOr Weis
06/09/2023, 9:21 AMBen Wallis
06/09/2023, 9:29 AMOPAL_STATISTICS_ENABLED=true
set - the workers stop crashing without itBen Wallis
06/09/2023, 9:30 AM[2023-06-09 09:29:32 +0000] [7151] [INFO] Booting worker with pid: 7151
[2023-06-09 09:29:32 +0000] [7120] [INFO] Error while closing socket [Errno 9] Bad file descriptor
[2023-06-09 09:29:32 +0000] [7135] [INFO] Error while closing socket [Errno 9] Bad file descriptor
2023-06-09T09:29:32.990341+0000 | 7141 | opal_server.server | INFO | Trigger worker graceful shutdown
Or Weis
06/09/2023, 9:35 AMBen Wallis
06/09/2023, 9:35 AMBen Wallis
06/09/2023, 9:37 AMUVICORN_NUM_WORKERS=4
OPAL_LOG_LEVEL=DEBUG
OPAL_STATISTICS_ENABLED=true
pod spec:
spec:
replicas: 1
selector:
matchLabels:
app: authz-opal-server
template:
metadata:
labels:
app: authz-opal-server
<http://app.kubernetes.io/name|app.kubernetes.io/name>: authz-opal-server
<http://app.kubernetes.io/component|app.kubernetes.io/component>: server
spec:
containers:
- name: authz-opal-server
image: permitio/opal-server
envFrom:
- configMapRef:
name: opal-server-env-config
- secretRef:
name: opal-server-env-secrets
env:
- name: OPAL_BROADCAST_URI
value: <postgres://postgres:postgres@authz-opal-server-broadcast-service:5432/postgres>
- name: OPAL_POLICY_REPO_URL
value: git@localhost:/srv/git/policy
- name: OPAL_POLICY_REPO_MAIN_BRANCH
value: master
- name: OPAL_POLICY_REPO_POLLING_INTERVAL
value: "86400"
- name: OPAL_DATA_CONFIG_SOURCES
value: '{"external_source_url":"<http://localhost/config.json>"}'
- name: OPAL_LOG_FORMAT_INCLUDE_PID
value: "true"
ports:
- containerPort: 7002
resources:
limits:
memory: 2Gi
requests:
memory: 250Mi
The localhost git and http servers are provided by sidecar containers, shouldn't be relevant I think.Ro'e Katz
06/09/2023, 12:21 PMBen Wallis
06/09/2023, 12:26 PMBen Wallis
06/09/2023, 12:27 PMBen Wallis
06/09/2023, 12:29 PM