Skip to content

refactor(CubeProxy): remove unused faulty_backend_set check#139

Closed
novahe wants to merge 1 commit into
TencentCloud:masterfrom
novahe:feat/optimize-healthcheck
Closed

refactor(CubeProxy): remove unused faulty_backend_set check#139
novahe wants to merge 1 commit into
TencentCloud:masterfrom
novahe:feat/optimize-healthcheck

Conversation

@novahe
Copy link
Copy Markdown
Contributor

@novahe novahe commented May 4, 2026

refactor(CubeProxy): remove unused faulty_backend_set check
ef: #135 (comment)

Comment thread CubeProxy/lua/utils.lua Outdated
local err
value, err = red:smembers(key)

local res, err = red:sismember("faulty_backend_set", backend_ip)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This faulty_backend_set set is never filled in our open source release. This can be removed completely instead.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@novahe novahe changed the title feat(CubeProxy): optimize is_faulty_backend with SISMEMBER refactor(CubeProxy): remove unused faulty_backend_set check May 6, 2026
The faulty_backend_set in Redis is never filled in the open-source release.
This change removes the unnecessary Redis lookup and relies solely on the
local shared cache for faulty backend detection.

Autonomously-by: Antigravity:Gemini-3-Flash
@novahe novahe force-pushed the feat/optimize-healthcheck branch from 0d6c2b8 to e9822c8 Compare May 6, 2026 05:13
Comment thread CubeProxy/lua/utils.lua
end

if check_remote == false then
if value == "true" then
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not remove the entire is_faulty_backend() and ngx.shared.faulty_backend?

@novahe novahe closed this May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants