You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/08/01 08:36:38 UTC

[GitHub] [apisix] 1024-zzw commented on issue #7571: help request: Apisix 404 route not found And Apisix背后的etcd 报查询时间长

1024-zzw commented on issue #7571:
URL: https://github.com/apache/apisix/issues/7571#issuecomment-1200894281

   1.路由相关配置{
     "uri": "/test-boot/*",
     "name": "TEST-BOOT",
     "host": "fra-apisix-gateway.pre.com",
     "plugins": {
       "proxy-rewrite": {
         "regex_uri": [
           "^/test-boot/(.*)",
           "/${1}"
         ]
       }
     },
     "plugin_config_id": "1",
     "upstream": {
       "timeout": {
         "connect": 6,
         "send": 6,
         "read": 6
       },
       "type": "roundrobin",
       "scheme": "http",
       "discovery_type": "eureka",
       "pass_host": "pass",
       "service_name": "TEST-BOOT",
       "keepalive_pool": {
         "idle_timeout": 60,
         "requests": 1000,
         "size": 320
       }
     },
     "status": 1
   }
   
   2.apisix相关配置config.yaml
   apiVersion: v1
   data:
     config.yaml: |-
       apisix:
         admin_key:
         - key: xxx
           name: admin
           role: admin
         - key: xxx
           name: viewer
           role: viewer
         allow_admin:
         - 127.0.0.1/24
         - 0.0.0.0/0
         config_center: etcd
         dns_resolver_valid: 30
         enable_admin: true
         enable_admin_cors: true
         enable_debug: false
         enable_dev_mode: false
         enable_heartbeat: true
         enable_ipv6: true
         enable_reuseport: true
         node_listen: 9080
         port_admin: 9180
         proxy_cache:
           cache_ttl: 10s
           zones:
           - cache_levels: "1:2"
             disk_path: /dev/shm/mycache
             disk_size: 1G
             memory_size: 50m
             name: mycache
         resolver_timeout: 5
         router:
           http: radixtree_uri
           ssl: radixtree_sni
         ssl:
           enable: false
           enable_http2: true
           listen_port: 9443
           ssl_ciphers: ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA256:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA
           ssl_protocols: TLSv1 TLSv1.1 TLSv1.2 TLSv1.3
       discovery:
         eureka:
           fetch_interval: 15
           host:
           - http://xxxx:8761
           - http://xxxx:8761
           prefix: /eureka/
           timeout:
             connect: 2000
             read: 5000
             send: 2000
           weight: 100
       etcd:
         host:
         - http://172.30.xxx.xxx:2379
         prefix: /apisix
         timeout: 30
       nginx_config:
         error_log: /dev/stderr
         error_log_level: warn
         event:
           worker_connections: 65535
         http:
           access_log: /dev/stdout
           access_log_format: $remote_addr\t$remote_port\t$remote_user\t[$time_local]\t$request\t$http_host\t$status\t$request_length\t$body_bytes_sent\t\"$http_referer\"\t\"$http_user_agent\"\t\"$http_x_forwarded_for\"\t$request_time\t$upstream_response_time\t$ssl_client_s_dn\t$ssl_cipher\t\"$proxy_add_x_forwarded_for\"
           access_log_format_escape: default
           client_body_timeout: 60s
           client_header_timeout: 60s
           enable_access_log: true
           keepalive_timeout: 60s
           real_ip_from:
           - 127.0.0.1
           - 'unix:'
           real_ip_header: X-Real-IP
           send_timeout: 10s
           underscores_in_headers: "on"
         http_configuration_snippet: |
           client_header_buffer_size 4k;
           client_body_buffer_size  512k;
           large_client_header_buffers 4 32k;
           sendfile on;
           tcp_nopush     on;
           tcp_nodelay on;
           proxy_connect_timeout    600;
           proxy_read_timeout       600;
           proxy_send_timeout       600;
           proxy_buffer_size        64k;
           proxy_buffers            4 64k;
           proxy_busy_buffers_size 128k;
           proxy_temp_file_write_size 128k;
           gzip on;
           gzip_min_length  1k;
           gzip_buffers     4 16k;
           gzip_http_version 1.0;
           gzip_comp_level 2;
           gzip_types       text/plain text/javascript application/javascript application/x-javascript text/css application/xml;
           gzip_vary on;
         worker_rlimit_nofile: 365535
       plugin_attr:
         prometheus:
           export_addr:
             ip: 0.0.0.0
             port: 9091
           export_uri: /apisix/prometheus/metrics
           metric_prefix: apisix_
       plugins:
         - api-breaker
         - authz-keycloak
         - basic-auth
         - batch-requests
         - consumer-restriction
         - cors
         - echo
         - fault-injection
         - grpc-transcode
         - hmac-auth
         - http-logger
         - ip-restriction
         - ua-restriction
         - jwt-auth
         - kafka-logger
         - key-auth
         - limit-conn
         - limit-count
         - limit-req
         - node-status
         - openid-connect
         - authz-casbin
         - prometheus
         - proxy-cache
         - proxy-mirror
         - proxy-rewrite
         - redirect
         - referer-restriction
         - request-id
         - request-validation
         - response-rewrite
         - serverless-post-function
         - serverless-pre-function
         - server-info
         - sls-logger
         - syslog
         - tcp-logger
         - udp-logger
         - uri-blocker
         - wolf-rbac
         - zipkin
         - traffic-split
         - gzip
         - real-ip
         - public-api
         - forward-auth
       stream_plugins:
         - mqtt-proxy
         - ip-restriction
         - limit-conn
   3.etcd版本:etcd Version: 3.4.18
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org