Mooncake: Connection refused error when using mooncake store as kvcache store for XpYd disaggregation
Mooncake is a nice work! However, we have the following problem when using the mooncake store as the kvcache store for XpYd disaggregation. Can anyone give some advice? Thanks in advance!
What’s more, Mooncake/mooncake-store/tests/stress_cluster_benchmark.py test case passed and the configuration:
{
"local_hostname": "X.X.X.X",
"metadata_server": "etcd://192.168.2.58:2379",
"protocol": "tcp",
"device_name": "",
"master_server_address": "192.168.2.58:50051",
"global_segment_size": 348966092800
}
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 30
According to the Mooncake Store doc, there is a TTL feature of get(). If put() skip the duplicate item, for same prompt, MooncakeStore doesn’t ensure decoder can get the same kvcache multiple times. Am I right? How to turn off TTL feature.
object_not_foundindicates that the object has never been put, meaning it wasn’t found—this is consistent with the semantics of other databases.object_already_existssignifies to put the same object multiple times. Strictly speaking, this is not an error; We’ll classify this log as a debug message later.@Second222None Thx for the logs.
I see some lines in the logs of decode node:
INFO 03-30 23:16:17 [metrics.py:481] Avg prompt throughput: 778.8 tokens/s, Avg generation throughput: 29.0 tokens/s, Running: 5 reqs, Swapped: 0 reqs, Pending: 0 reqs, GPU KV cache usage: 1.4%, CPU KV cache usage: 0.0%.It means that the decode instances failed to receive the kvcache, so they are running the prefill step by themselves, so the Avg prompt throughput is not zero.
If it runs successfully, you should be able to see this debug info:
DEBUG 03-31 15:49:48 [mooncake_store_connector.py:202] [rank0]: Successfully received all KVs and hidden states, skip model forwarding. (VllmWorkerProcess pid=1586499) DEBUG 03-31 15:49:48 [mooncake_store_connector.py:202] [rank1]: Successfully received all KVs and hidden states, skip model forwarding.Also, the TTFT is supposed to be larger than the vanilla vllm without kvcache transfer before we impl layer-wise async transfer. If you want to reduce TTFT, you should increase the prefill node, instead of the decode node. Increase the number of decode instances will show some performance improvement on TPOT and ITL.
Sorry for late reply! The error occured in 1P2D scenario under LLMPerf test. For simplicity, we setup 1P1D( PD instances each run in a docker and mooncake store runs on the same host.) and collect the full log. Please find the attached full log.
decode1-202503302222.log etcd-202503311320.log mooncake_master-202503311320.log prefill-202503302222.log proxy-202503311325.log
We see another error(object_already_exist) and the performance number(TTFT) is not within our expectation. Any suggestion is welcome!
TTFT performance number(ms):