Skip to content

feat: add CLIENT SETNAME for connection identification#1

Open
atao2004 wants to merge 1 commit into
Jonathan-Improving:feature/hicachestore-valkeyfrom
atao2004:feat/add-client-name
Open

feat: add CLIENT SETNAME for connection identification#1
atao2004 wants to merge 1 commit into
Jonathan-Improving:feature/hicachestore-valkeyfrom
atao2004:feat/add-client-name

Conversation

@atao2004

@atao2004 atao2004 commented May 28, 2026

Copy link
Copy Markdown

Summary

Adds client_name="sglang_cache_client" to the valkey.Valkey() constructor in hicache_valkey_storage.py so the connection is identifiable via CLIENT LIST on the server.

Related upstream PR: sgl-project#16823

Changes

One-line addition — adds client_name parameter to the existing Valkey client constructor.

Motivation

Connections without a name appear anonymous in CLIENT LIST. Setting client_name sends a CLIENT SETNAME command on connection, making it identifiable in monitoring dashboards and CloudWatch metrics.

Risk

Zero-risk — client_name is a metadata-only option in valkey-py. No behavioral changes.

Adds client_name="sglang_cache_client" to the valkey.Valkey() constructor
so the connection is identifiable via CLIENT LIST on the server.

Fixes sgl-project#26418

Signed-off-by: Anna Tao <annatao2004@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant