Rename to gpu-turnstile; swap port roles
The proxy now listens on the standard service ports (Ollama :11434, ComfyUI :8188) and the actual services move one port up (:11435, :8189). Metric prefix is now gpu_turnstile_.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// gpulock is a GPU arbitration proxy that sits in front of Ollama and
|
||||
// gpu-turnstile is a GPU arbitration proxy that sits in front of Ollama and
|
||||
// ComfyUI and guarantees only one of them uses the GPU at a time.
|
||||
package main
|
||||
|
||||
@@ -52,10 +52,10 @@ func envDuration(getenv func(string) string, name string, dst *time.Duration) er
|
||||
|
||||
func loadConfig(getenv func(string) string) (config, error) {
|
||||
cfg := config{
|
||||
listenOllama: ":11435",
|
||||
listenComfy: ":8189",
|
||||
ollamaURL: "http://127.0.0.1:11434",
|
||||
comfyURL: "http://127.0.0.1:8188",
|
||||
listenOllama: ":11434",
|
||||
listenComfy: ":8188",
|
||||
ollamaURL: "http://127.0.0.1:11435",
|
||||
comfyURL: "http://127.0.0.1:8189",
|
||||
unloadTimeout: time.Minute,
|
||||
jobTimeout: 15 * time.Minute,
|
||||
llmWaitTimeout: 10 * time.Minute,
|
||||
@@ -107,7 +107,7 @@ func loadConfig(getenv func(string) string) (config, error) {
|
||||
func main() {
|
||||
cfg, err := loadConfig(os.Getenv)
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "gpulock: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "gpu-turnstile: %v\n", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ func main() {
|
||||
log := slog.New(handler)
|
||||
slog.SetDefault(log)
|
||||
|
||||
log.Info("starting gpulock",
|
||||
log.Info("starting gpu-turnstile",
|
||||
"version", version,
|
||||
"listen_ollama", cfg.listenOllama,
|
||||
"listen_comfy", cfg.listenComfy,
|
||||
Reference in New Issue
Block a user