diff --git a/router/cmd/plan_generator.go b/router/cmd/plan_generator.go index 0b960882fb..835cdbcc3c 100644 --- a/router/cmd/plan_generator.go +++ b/router/cmd/plan_generator.go @@ -104,8 +104,7 @@ func PlanGenerator(args []string) { // More details: https://tip.golang.org/doc/gc-guide#Memory_limit mLimit, err := memlimit.SetGoMemLimitWithOpts( memlimit.WithRatio(0.9), - // FromCgroupHybrid retrieves the memory limit from the cgroup v2 and v1 controller sequentially - memlimit.WithProvider(memlimit.FromCgroupHybrid), + memlimit.WithProvider(memlimit.FromCgroup), ) if err == nil { logger.Info("GOMEMLIMIT set automatically", zap.String("size", humanize.Bytes(uint64(mLimit)))) diff --git a/router/core/supervisor_instance.go b/router/core/supervisor_instance.go index 5879b525ad..b791053bc5 100644 --- a/router/core/supervisor_instance.go +++ b/router/core/supervisor_instance.go @@ -41,7 +41,7 @@ func newRouter(ctx context.Context, params RouterResources, additionalOptions .. // More details: https://tip.golang.org/doc/gc-guide#Memory_limit mLimit, err := memlimit.SetGoMemLimitWithOpts( memlimit.WithRatio(0.9), - memlimit.WithProvider(memlimit.FromCgroupHybrid), + memlimit.WithProvider(memlimit.FromCgroup), ) if err == nil { params.Logger.Info("GOMEMLIMIT set automatically", zap.String("limit", humanize.Bytes(uint64(mLimit))))