apache / apisix

The Cloud-Native API Gateway
https://apisix.apache.org/blog/
Apache License 2.0
14.46k stars 2.52k forks source link

help request: docker has a large memory footprint, which varies from machine to machine #11493

Closed archine closed 2 months ago

archine commented 2 months ago

Description

I run apisix through docker-compose on two different servers, and the memory footprint gap is too large. The configuration file and the image version are the same.

A large number of logs are found by querying logs: image

Effect drawing

configurations

services: etcd: image: bitnami/etcd:3.5.14 container_name: etcd restart: always environment: ALLOW_NONE_AUTHENTICATION: "yes" ETCD_ENABLE_V2: "true" ports:

networks: apisix: driver: bridge

* apisix configuration file
```conf
apisix:
  node_listen: 9080
  ssl:
    enable: true
    listen:
      - port: 9443
  enable_control: true
  control:
    ip: "0.0.0.0"
    port: 9090
deployment:
  admin:
    allow_admin:
      - 0.0.0.0/0
    admin_key:
      - name: "admin"
        key: "xxxxxxxxxxxxx"
        role: admin
  etcd:
    host:
      - "http://etcd:2379"
    prefix: "/apisix"
    timeout: 5

nginx_config:
  http:
    client_body_timeout: 180s
    client_max_body_size: 100m
    send_timeout: 60s

plugins:
  - jwt-auth
  - key-auth
  - cors
  - ip-restriction
  - limit-count
  - limit-req
  - limit-conn
  - proxy-rewrite
  - response-rewrite
  - redirect
  - request-id
  - gzip
  - real-ip
  - client-control
  - api-breaker
  - traffic-split

Environment

DevSusu commented 1 week ago

@archine can you share what was the problem? I'm also experiencing high memory usage of latest apisix, without any incoming requests