fix(snowflake): support per-replica WorkerId via env for multi-instance StatefulSet

This commit is contained in:
zetaloop
2026-05-05 12:29:47 +08:00
parent cba510c675
commit c456f3e296
3 changed files with 34 additions and 3 deletions
+2 -2
View File
@@ -2,5 +2,5 @@ Name: snowflake.rpc
ListenOn: 0.0.0.0:8080
Snowflake:
DatacenterId: 1
WorkerId: 0
DatacenterId: ${SNOWFLAKE_DATACENTER_ID}
WorkerId: ${SNOWFLAKE_WORKER_ID}