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 2021/07/21 07:14:23 UTC
[GitHub] [apisix] philzhangrui opened a new issue #4642: request help: lua redis problem
philzhangrui opened a new issue #4642:
URL: https://github.com/apache/apisix/issues/4642
### Issue description
I wrote a plug-in to imitate limit Conn, mainly to replace the shared memory with redis. I encountered some problems. 1. The connection problem of redis 2. Living without con, redis without link,
@membphis
code
[file.zip](https://github.com/apache/apisix/files/6853488/file.zip)
Please give me some guidance
### Environment
Request help without environment information will be ignored or closed.
* apisix version (cmd: `apisix version`):
* OS (cmd: `uname -a`):
* OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
* etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
* apisix-dashboard version, if have:
* luarocks version, if the issue is about installation (cmd: `luarocks --version`):
--
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
[GitHub] [apisix] philzhangrui commented on issue #4642: request help: lua redis problem
Posted by GitBox <gi...@apache.org>.
philzhangrui commented on issue #4642:
URL: https://github.com/apache/apisix/issues/4642#issuecomment-886544760
In the log phase, sockets are not allowed
--
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
[GitHub] [apisix] tokers commented on issue #4642: request help: lua redis problem
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #4642:
URL: https://github.com/apache/apisix/issues/4642#issuecomment-884102011
@philzhangrui Please just paste the code instead of uploading a file, it's not friendly for mobile users.
--
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
[GitHub] [apisix] tzssangglass commented on issue #4642: request help: lua redis problem
Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #4642:
URL: https://github.com/apache/apisix/issues/4642#issuecomment-884213986
> 1. The connection problem of redis 2. Living without con, redis without link
you should describe these two issues in detail.
for example, what is the problem performance and what do you expect.
--
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
[GitHub] [apisix] philzhangrui commented on issue #4642: request help: lua redis problem
Posted by GitBox <gi...@apache.org>.
philzhangrui commented on issue #4642:
URL: https://github.com/apache/apisix/issues/4642#issuecomment-884272577
> > 1. The connection problem of redis 2. Living without con, redis without link
>
> you should describe these two issues in detail.
> for example, what is the problem performance and what do you expect.
Well, to imitate limit Conn, you need to execute the redis command twice. I want to know if you have similar examples. I can imitate them
--
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
[GitHub] [apisix] tokers commented on issue #4642: request help: lua redis problem
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #4642:
URL: https://github.com/apache/apisix/issues/4642#issuecomment-886606417
> In the log phase, sockets are not allowed
Spawn a timer to do that in the log phase.
--
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