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 2020/09/23 13:07:20 UTC

[GitHub] [apisix] huzhewei opened a new issue #2289: request help: stream proxy didn't work

huzhewei opened a new issue #2289:
URL: https://github.com/apache/apisix/issues/2289


   ### Issue description
   I want to register tcp protocol services and proxy the port.
   So I realized my discovery registry, and wanted to register a route to proxy the tcp service.
   
   discovery.nodes:
   {
     "tcp-service":{
        "host":"10.0.15.249",
        "port":"8000",
        "weight":10
     }  
   }
   
   Then I request stream_proxy api to register:
   curl http://127.0.0.1:9080/apisix/admin/stream_routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   {
       "server_addr": "127.0.0.1",
       "server_port": 2000,
       "upstream": {
           "service_name": "tcp-service",
           "type": "roundrobin"
       }
   }'
   
   But I can't see the address mapping by using netstat -ant | grep 2000
   
   
   ### Environment
   
   * apisix version (cmd: `apisix version`):
   * OS:
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] Yiyiyimu commented on issue #2289: request help: stream proxy didn't work

Posted by GitBox <gi...@apache.org>.
Yiyiyimu commented on issue #2289:
URL: https://github.com/apache/apisix/issues/2289#issuecomment-698202205


   Sorry I'm not familiar with this part. 
   ping @membphis 


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] huzhewei commented on issue #2289: request help: stream proxy didn't work

Posted by GitBox <gi...@apache.org>.
huzhewei commented on issue #2289:
URL: https://github.com/apache/apisix/issues/2289#issuecomment-698076882


   Should I modify  config_yaml and add tcp port:2000 before requesting stream_proxy api?
   ![image](https://user-images.githubusercontent.com/50432229/94094575-68f6ce80-fe52-11ea-9352-283fb8a82f83.png)
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] spacewander commented on issue #2289: request help: stream proxy didn't work

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #2289:
URL: https://github.com/apache/apisix/issues/2289#issuecomment-855754659


   Apisix doesn't support to proxy an unspecified number of TCP services without modifying config.yaml


-- 
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:
users@infra.apache.org



[GitHub] [apisix] Yiyiyimu commented on issue #2289: request help: stream proxy didn't work

Posted by GitBox <gi...@apache.org>.
Yiyiyimu commented on issue #2289:
URL: https://github.com/apache/apisix/issues/2289#issuecomment-698202205


   Sorry I'm not familiar with this part. 
   ping @membphis 


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] huzhewei commented on issue #2289: request help: stream proxy didn't work

Posted by GitBox <gi...@apache.org>.
huzhewei commented on issue #2289:
URL: https://github.com/apache/apisix/issues/2289#issuecomment-698204147


   @Yiyiyimu  Thanks~
   @membphis  Could you please give me a hand?


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] huzhewei commented on issue #2289: request help: stream proxy didn't work

Posted by GitBox <gi...@apache.org>.
huzhewei commented on issue #2289:
URL: https://github.com/apache/apisix/issues/2289#issuecomment-698198816


   @Yiyiyimu Does Apisix support to proxy an unspecified number of tcp services without modifying config.yaml ?
   stream_proxy:
     tcp:
       - 9100
       . .  .


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] huzhewei commented on issue #2289: request help: stream proxy didn't work

Posted by GitBox <gi...@apache.org>.
huzhewei commented on issue #2289:
URL: https://github.com/apache/apisix/issues/2289#issuecomment-855758165


   thanks ~
   I have got it.
   
   
   
   ***@***.***
    
   From: 罗泽轩
   Date: 2021-06-07 17:09
   To: apache/apisix
   CC: huzhewei; Author
   Subject: Re: [apache/apisix] request help: stream proxy didn't work (#2289)
   Apisix doesn't support to proxy an unspecified number of TCP services without modifying config.yaml
   —
   You are receiving this because you authored the thread.
   Reply to this email directly, view it on GitHub, or unsubscribe.
   


-- 
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:
users@infra.apache.org



[GitHub] [apisix] huzhewei edited a comment on issue #2289: request help: stream proxy didn't work

Posted by GitBox <gi...@apache.org>.
huzhewei edited a comment on issue #2289:
URL: https://github.com/apache/apisix/issues/2289#issuecomment-697485158


   I have modified the config_yaml to allow stream proxy:
   strea_proxy:
     tcp:
       - 9100
       - 9010
   
   
   Did I lose some necessary steps ,Could you please give me a help?


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] huzhewei edited a comment on issue #2289: request help: stream proxy didn't work

Posted by GitBox <gi...@apache.org>.
huzhewei edited a comment on issue #2289:
URL: https://github.com/apache/apisix/issues/2289#issuecomment-698123534






----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] huzhewei commented on issue #2289: request help: stream proxy didn't work

Posted by GitBox <gi...@apache.org>.
huzhewei commented on issue #2289:
URL: https://github.com/apache/apisix/issues/2289#issuecomment-698123534


   I have resolved it using my way.
   But I think my method is not very standard,
   I added "discovery.init_worker" into stream_init_worker to make nodes effective.
   Someone give me a suggestion?


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] huzhewei commented on issue #2289: request help: stream proxy didn't work

Posted by GitBox <gi...@apache.org>.
huzhewei commented on issue #2289:
URL: https://github.com/apache/apisix/issues/2289#issuecomment-697485158


   I have modified the config_yaml to allow stream proxy:
   strea_proxy:
     tcp:
       - 9100
       - 9010


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] huzhewei edited a comment on issue #2289: request help: stream proxy didn't work

Posted by GitBox <gi...@apache.org>.
huzhewei edited a comment on issue #2289:
URL: https://github.com/apache/apisix/issues/2289#issuecomment-698123534


   I have resolved it using my way.
   But I think my method is not very standard,
   I added "discovery.init_worker" into stream_init_worker to make nodes effective.
   Anyone give me a suggestion?


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] huzhewei commented on issue #2289: request help: stream proxy didn't work

Posted by GitBox <gi...@apache.org>.
huzhewei commented on issue #2289:
URL: https://github.com/apache/apisix/issues/2289#issuecomment-698123534






----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] huzhewei edited a comment on issue #2289: request help: stream proxy didn't work

Posted by GitBox <gi...@apache.org>.
huzhewei edited a comment on issue #2289:
URL: https://github.com/apache/apisix/issues/2289#issuecomment-698123534


   I have resolved it using my way.
   But I think my method is not very standard,
   First modified the config.yaml:
   tcp:
     - 9100
     - 9101
     - 2000
   Then added "discovery.init_worker" into stream_init_worker to make nodes effective.
   Anyone give me a suggestion?


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] spacewander closed issue #2289: request help: stream proxy didn't work

Posted by GitBox <gi...@apache.org>.
spacewander closed issue #2289:
URL: https://github.com/apache/apisix/issues/2289


   


-- 
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:
users@infra.apache.org