openresty / openresty/lua-resty-redis

[Question] behavior of get_reused_items function

Open
#284 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
2k
Forks
447
Avg merge
2h 24m
Merged PRs (30d)
3

Description

does get_reused_items() returns the pool size? or its just returns random number if the connection isn't from connection pool? i want to monitor my connection pool size because i have sudden spikes in my connection to redis (goes to 120K connections on a single redis instance)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the get_reused_items() implementation and reading the surrounding connection-pooling behavior in this Lua Redis client. Determine what the function returns when connections are reused or created outside the pool, then document the behavior and whether it can be used to monitor pool size.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, redis
Domain
backend, database
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.