diff --git a/pkg/manager/timeout.go b/pkg/manager/timeout.go index 0ee9c11..50b1c10 100644 --- a/pkg/manager/timeout.go +++ b/pkg/manager/timeout.go @@ -12,6 +12,11 @@ func (im *instanceManager) checkAllTimeouts() { // Identify instances that should timeout for _, inst := range im.instances { + // Skip remote instances - they are managed by their respective nodes + if inst.IsRemote() { + continue + } + if inst.ShouldTimeout() { timeoutInstances = append(timeoutInstances, inst.Name) } @@ -40,6 +45,11 @@ func (im *instanceManager) EvictLRUInstance() error { continue } + // Skip remote instances - they are managed by their respective nodes + if inst.IsRemote() { + continue + } + if inst.GetOptions() != nil && inst.GetOptions().IdleTimeout != nil && *inst.GetOptions().IdleTimeout <= 0 { continue // Skip instances without idle timeout }