You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/pd-sidecar/main.go
+41-12Lines changed: 41 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -32,22 +32,30 @@ import (
32
32
)
33
33
34
34
var (
35
-
// supportedConnectors defines all valid P/D connector types
36
-
supportedConnectors= []string{
37
-
proxy.ConnectorNIXLV2,
38
-
proxy.ConnectorSharedStorage,
39
-
proxy.ConnectorSGLang,
35
+
// supportedKVConnectors defines all valid KV (Prefiller-Decoder) connector types
36
+
supportedKVConnectors= []string{
37
+
proxy.KVConnectorNIXLV2,
38
+
proxy.KVConnectorSharedStorage,
39
+
proxy.KVConnectorSGLang,
40
+
}
41
+
42
+
// supportedECConnectors defines all valid EC (Encoder-Prefiller) connector types
43
+
supportedECConnectors= []string{
44
+
proxy.ECExampleConnector,
40
45
}
41
46
)
42
47
43
48
funcmain() {
44
49
port:=flag.String("port", "8000", "the port the sidecar is listening on")
45
50
vLLMPort:=flag.String("vllm-port", "8001", "the port vLLM is listening on")
46
51
vLLMDataParallelSize:=flag.Int("data-parallel-size", 1, "the vLLM DATA-PARALLEL-SIZE value")
47
-
connector:=flag.String("connector", proxy.ConnectorNIXLV2, "the P/D connector being used. Supported: "+strings.Join(supportedConnectors, ", "))
52
+
kvConnector:=flag.String("kv-connector", proxy.KVConnectorNIXLV2, "the KV connector between Prefiller and Decoder. Supported: "+strings.Join(supportedKVConnectors, ", "))
53
+
ecConnector:=flag.String("ec-connector", proxy.ECExampleConnector, "the EC connector between Encoder and Prefiller (optional, for EPD mode). Supported: "+strings.Join(supportedECConnectors, ", "))
48
54
prefillerUseTLS:=flag.Bool("prefiller-use-tls", false, "whether to use TLS when sending requests to prefillers")
55
+
encoderUseTLS:=flag.Bool("encoder-use-tls", false, "whether to use TLS when sending requests to encoders")
49
56
decoderUseTLS:=flag.Bool("decoder-use-tls", false, "whether to use TLS when sending requests to the decoder")
50
57
prefillerInsecureSkipVerify:=flag.Bool("prefiller-tls-insecure-skip-verify", false, "configures the proxy to skip TLS verification for requests to prefiller")
58
+
encoderInsecureSkipVerify:=flag.Bool("encoder-tls-insecure-skip-verify", false, "configures the proxy to skip TLS verification for requests to encoder")
51
59
decoderInsecureSkipVerify:=flag.Bool("decoder-tls-insecure-skip-verify", false, "configures the proxy to skip TLS verification for requests to decoder")
52
60
secureProxy:=flag.Bool("secure-proxy", true, "Enables secure proxy. Defaults to true.")
0 commit comments