к этому postgres я подключаюсь из своего приложения JAVA SpringBoot (Hikari).. единственная конфигурация подключения на стороне приложения –
Код: Выделить всё
hikari:
max-lifetime: 600000
Значения управляющей диаграммы.yaml
Код: Выделить всё
replicaCount: 1
image:
repository: *censored*
pullPolicy: IfNotPresent
tag: main-9610330a
nameOverride: ""
fullnameOverride: ""
service:
type: ClusterIP
port: 8080
healthCheckPort: 8080
resources:
limits:
cpu: 500m
memory: 768Mi
requests:
cpu: 200m
memory: 512Mi
podAnnotations: {}
securityContext: {}
podSecurityContext: {}
nodeSelector: {}
tolerations: []
affinity: {}
config:
env:
secrets:
enabled: false
ingress:
enabled: false
Код: Выделить всё
ingress:
enabled: true
ingressClassName: nginx
hostname: apigw-dev.example.com
tls:
- secretName: wildcard-cert
hosts:
- apigw-dev.example.com
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: 20m
nginx.ingress.kubernetes.io/server-tokens: "false"
cert-manager.io/cluster-issuer: letsencrypt-cluster-issuer
nginx.ingress.kubernetes.io/use-regex: "true"
# enable CORS for subdomains
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/cors-allow-origin: "https://app-dev.example.com"
nginx.ingress.kubernetes.io/cors-allow-methods: "GET, POST, PUT, DELETE, OPTIONS"
nginx.ingress.kubernetes.io/cors-allow-headers: "Origin, X-Requested-With, Content-Type, Accept, Authorization"
nginx.ingress.kubernetes.io/cors-allow-credentials: "true"
hosts:
- host: apigw-dev.example.com
paths:
- path: /business/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/logo
pathType: ImplementationSpecific
backend:
service:
name: core.backend
port:
number: 8080
config:
env:
.... some env variables are here ....
ЖУРНАЛ: не удалось получить данные от клиента: сброс соединения по узлу
FATAL: извините, уже слишком много клиентов
немного статистики:< /p>
Код: Выделить всё
File Total Rows Connection Reset Count Too Many Clients Count
postgresql-14-main.log 5232 1589 3064
postgresql-14-main.log.1 61 0 0
postgresql-14-main.log.2 11496 3978 6965
postgresql-14-main.log.3 19184 6293 12566
postgresql-14-main.log.4 42705 2768 0
postgresql-14-main.log.5 116 65 0
postgresql-14-main.log.6 72 3 0
postgresql-14-main.log.7 1430 1250 0
postgresql-14-main.log.8 2881 2745 0
postgresql-14-main.log.9 2883 2567 0
postgresql-14-main.log.10 2783 2614 0
по какой причине это может быть?
Подробнее здесь: https://stackoverflow.com/questions/791 ... onnections