[GitHub] [apisix] rockXiaofeng commented on issue #3725: request help: about dubbo proxy

2021-03-07 Thread GitBox


rockXiaofeng commented on issue #3725:
URL: https://github.com/apache/apisix/issues/3725#issuecomment-792478460


   > If there is any new update with 
[apache/dubbo-go#993](https://github.com/apache/dubbo-go/issues/993), please 
discuss in that issue directly. We are working with open source project, not 
something need to be private.
   




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.

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




[GitHub] [apisix] rockXiaofeng commented on issue #3725: request help: about dubbo proxy

2021-03-07 Thread GitBox


rockXiaofeng commented on issue #3725:
URL: https://github.com/apache/apisix/issues/3725#issuecomment-792435805


   > I submitted a bug report to dubbo-go previously: 
[apache/dubbo-go#993](https://github.com/apache/dubbo-go/issues/993)
   
Hi, we found AlexanderStocks of the dubbo-go project,  maybe we can work 
together to solve this problem?
(My wechat: xfaitmt)



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.

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




[GitHub] [apisix] rockXiaofeng commented on issue #3725: request help: about dubbo proxy

2021-03-07 Thread GitBox


rockXiaofeng commented on issue #3725:
URL: https://github.com/apache/apisix/issues/3725#issuecomment-792398647


   > I submitted a bug report to dubbo-go previously: 
[apache/dubbo-go#993](https://github.com/apache/dubbo-go/issues/993)
   
okay, got it ...



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.

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




[GitHub] [apisix] rockXiaofeng commented on issue #3725: request help: about dubbo proxy

2021-03-02 Thread GitBox


rockXiaofeng commented on issue #3725:
URL: https://github.com/apache/apisix/issues/3725#issuecomment-789496262


   We tried again not long ago, and the configuration was the same as 
yesterday. This time we got 504 Gateway Time-out. The error.log information is 
as follows:
   ```
   2021/03/03 15:13:54 [warn] 12168#257902: *79096 multi: multi connection 
detach not empty 7FE03F400E10
   2021/03/03 15:13:54 [error] 12168#257902: *79095 upstream timed out (60: 
Operation timed out) while connecting to upstream, client: ::1, server: , 
subrequest: "/foobar", upstream: "dubbo://127.0.0.1:2"
   ```
   
   The provider server error log:
   ```
   2021-03-03T15:04:52.251+0800INFOgetty/listener.go:195   got 
session:session 
{server:TCP_SERVER:7:172.20.216.72:2<->172.20.216.72:62586}, Read Bytes: 0, 
Write Bytes: 0, Read Pkgs: 0, Write Pkgs: 0
   2021-03-03T15:04:52.251+0800ERROR   dubbo/dubbo_codec.go:199
pkg.Unmarshal(len(@data):0) = error:get wrong attachments: 
   github.com/apache/dubbo-go/protocol/dubbo/impl.unmarshalRequestBody
   ```



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.

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




[GitHub] [apisix] rockXiaofeng commented on issue #3725: request help: about dubbo proxy

2021-03-02 Thread GitBox


rockXiaofeng commented on issue #3725:
URL: https://github.com/apache/apisix/issues/3725#issuecomment-789479388


   > Strange. There is definitely a `set $dubbo_service_name '';` in the 
nginx.conf...
   > The generated configuration is almost mine but I can't reproduce it.
   Maybe you can try to use dubbo-go's example to start the provider ?
   (helloworld/dubbo/go-server/app (http://github.com/dubbogo/dubbo-samples)
   



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.

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




[GitHub] [apisix] rockXiaofeng commented on issue #3725: request help: about dubbo proxy

2021-03-02 Thread GitBox


rockXiaofeng commented on issue #3725:
URL: https://github.com/apache/apisix/issues/3725#issuecomment-78885


   > I can't reproduce it with your configuration. Have you enabled the 
dubbo-proxy plugin? What is your generated nginx.conf?
   
   nginx.conf:
   # Configuration File - Nginx Server Configs
   # This is a read-only file, do not try to modify it.
   
   master_process on;
   
   worker_processes auto;
   
   # main configuration snippet starts
   
   
   # main configuration snippet ends
   
   error_log logs/error.log warn;
   pid logs/nginx.pid;
   
   worker_rlimit_nofile 20480;
   
   events {
   accept_mutex off;
   worker_connections 10620;
   }
   
   worker_rlimit_core  16G;
   
   worker_shutdown_timeout 240s;
   
   env APISIX_PROFILE;
   
   
   
   http {
   # put extra_lua_path in front of the builtin path
   # so user can override the source code
   lua_package_path  
"$prefix/deps/share/lua/5.1/?.lua;$prefix/deps/share/lua/5.1/?/init.lua;/Users/wangxiaofeng/myCode/apisix7/apisix/?.lua;/Users/wangxiaofeng/myCode/apisix7/apisix/?/init.lua;;./?.lua;/usr/local/openresty/luajit/share/luajit-2.1.0-beta3/?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;/usr/local/openresty/luajit/share/lua/5.1/?.lua;/usr/local/openresty/luajit/share/lua/5.1/?/init.lua;";
   lua_package_cpath 
"$prefix/deps/lib64/lua/5.1/?.so;$prefix/deps/lib/lua/5.1/?.so;;./?.so;/usr/local/lib/lua/5.1/?.so;/usr/local/openresty/luajit/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/loadall.so;";
   
   lua_shared_dict internal_status  10m;
   lua_shared_dict plugin-limit-req 10m;
   lua_shared_dict plugin-limit-count   10m;
   lua_shared_dict prometheus-metrics   10m;
   lua_shared_dict plugin-limit-conn10m;
   lua_shared_dict upstream-healthcheck 10m;
   lua_shared_dict worker-events10m;
   lua_shared_dict lrucache-lock10m;
   lua_shared_dict skywalking-tracing-buffer100m;
   lua_shared_dict balancer_ewma10m;
   lua_shared_dict balancer_ewma_locks  10m;
   lua_shared_dict balancer_ewma_last_touched_at 10m;
   lua_shared_dict plugin-limit-count-redis-cluster-slot-lock 1m;
   lua_shared_dict tracing_buffer   10m; # plugin: skywalking
   lua_shared_dict plugin-api-breaker   10m;
   
   # for openid-connect and authz-keycloak plugin
   lua_shared_dict discovery 1m; # cache for discovery metadata 
documents
   
   # for openid-connect plugin
   lua_shared_dict jwks  1m; # cache for JWKs
   lua_shared_dict introspection10m; # cache for JWT verification 
results
   
   # for authz-keycloak
   lua_shared_dict access_tokens 1m; # cache for service account 
access tokens
   
   # for custom shared dict
   
   # for proxy cache
   proxy_cache_path /tmp/disk_cache_one levels=1:2 
keys_zone=disk_cache_one:50m inactive=1d max_size=1G use_temp_path=off;
   
   # for proxy cache
   map $upstream_cache_zone $upstream_cache_zone_info {
   disk_cache_one /tmp/disk_cache_one,1:2;
   }
   
   
   lua_ssl_verify_depth 5;
   ssl_session_timeout 86400;
   
   underscores_in_headers on;
   
   lua_socket_log_errors off;
   
   resolver 172.20.183.13 172.20.183.14 192.168.1.13 192.168.1.14;
   resolver_timeout 5;
   
   lua_http10_buffering off;
   
   lua_regex_match_limit 10;
   lua_regex_cache_max_entries 8192;
   
   log_format main escape=default '$remote_addr - $remote_user 
[$time_local] $http_host "$request" $status $body_bytes_sent $request_time 
"$http_referer" "$http_user_agent" $upstream_addr $upstream_status 
$upstream_response_time "$upstream_scheme://$upstream_host$upstream_uri"';
   uninitialized_variable_warn off;
   
   access_log logs/access.log main buffer=16384 flush=3;
   open_file_cache  max=1000 inactive=60;
   client_max_body_size 0;
   keepalive_timeout 60s;
   client_header_timeout 60s;
   client_body_timeout 60s;
   send_timeout 10s;
   
   server_tokens off;
   
   include mime.types;
   charset utf-8;
   
   real_ip_header X-Real-IP;
   
   set_real_ip_from 127.0.0.1;
   set_real_ip_from unix:;
   
   # http configuration snippet starts
   
   
   # http configuration snippet ends
   
   upstream apisix_backend {
   server 0.0.0.1;
   balancer_by_lua_block {
   apisix.http_balancer_phase()
   }
   
   keepalive 320;
   }
   
   upstream apisix_dubbo_backend {
   server 0.0.0.1;
   balancer_by_lua_block {
   apisix.http_balancer_phase()
   }
   
   multi 32;
   keepalive 320;
   }
   
   init_by_lua_block {
   require "resty.core"
   apisix = require("apisix")
   
   local dns_resolver = { "172.20.183.13", "172.20.183.14", 

[GitHub] [apisix] rockXiaofeng commented on issue #3725: request help: about dubbo proxy

2021-03-01 Thread GitBox


rockXiaofeng commented on issue #3725:
URL: https://github.com/apache/apisix/issues/3725#issuecomment-788697180


   Why does dubbo proxy do not need to configure the registry to obtain 
provider metadata information? I am puzzled about the processing of parameter 
mapping. Can you answer the principle?



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.

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




[GitHub] [apisix] rockXiaofeng commented on issue #3725: request help: about dubbo proxy

2021-03-01 Thread GitBox


rockXiaofeng commented on issue #3725:
URL: https://github.com/apache/apisix/issues/3725#issuecomment-788693781


   > What's the **full** output of `openresty -V`?
   
   nginx version: openresty/1.19.3.1
   built by clang 12.0.0 (clang-1200.0.32.29)
   built with OpenSSL 1.1.1d  10 Sep 2019
   TLS SNI support enabled
   configure arguments: --prefix=/usr/local/openresty/nginx --with-cc-opt=-O2 
--add-module=../ngx_devel_kit-0.3.1 --add-module=../echo-nginx-module-0.62 
--add-module=../xss-nginx-module-0.06 --add-module=../ngx_coolkit-0.2 
--add-module=../set-misc-nginx-module-0.32 
--add-module=../form-input-nginx-module-0.12 
--add-module=../encrypted-session-nginx-module-0.08 
--add-module=../srcache-nginx-module-0.32 --add-module=../ngx_lua-0.10.19 
--add-module=../ngx_lua_upstream-0.07 
--add-module=../headers-more-nginx-module-0.33 
--add-module=../array-var-nginx-module-0.05 
--add-module=../memc-nginx-module-0.19 --add-module=../redis2-nginx-module-0.15 
--add-module=../redis-nginx-module-0.3.7 --add-module=../ngx_stream_lua-0.0.9 
--with-ld-opt=-Wl,-rpath,/usr/local/openresty/luajit/lib 
--add-module=/users/james/openresty-1.19.3.1/../mod_dubbo 
--add-module=/users/james/openresty-1.19.3.1/../ngx_multi_upstream_module 
--with-openssl=/usr/local/opt/openssl-1.1.1d --with-pcre-jit --with-stream 
--with-str
 eam_ssl_module --with-stream_ssl_preread_module --with-http_v2_module 
--without-mail_pop3_module --without-mail_imap_module 
--without-mail_smtp_module --with-http_stub_status_module 
--with-http_realip_module --with-http_addition_module 
--with-http_auth_request_module --with-http_secure_link_module 
--with-http_random_index_module --with-http_gzip_static_module 
--with-http_sub_module --with-http_dav_module --with-http_flv_module 
--with-http_mp4_module --with-http_gunzip_module --with-threads --with-compat 
--with-openssl-opt=-g --with-stream --with-http_ssl_module



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.

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