openresty / openresty/lua-upstream-nginx-module

get_primary_peers api does not return the server's status (up or down)?

Open
#45 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
512
Forks
153
Avg merge
1h 29m
Merged PRs (30d)
2

Description

get_primary_peers api does not return the server's status (up or down), how can i get it ?

the openresty and patch version is as folows:
SZX1000012022:/usr/local/openresty/bin # ./resty -V
resty 0.03
nginx version: openresty/1.9.7.3

patch version:
patch -p0 < /usr/local/plf/nginx_upstream_check_module-master/check_1.9.2+.patch

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

Search the module for the get_primary_peers entry point and inspect how the nginx upstream-check patch exposes peer information. Clarify the expected up/down status representation before changing behavior. Done means the API consistently returns each primary peer's status, with coverage added if the repository has relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, lua, nginx
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.