8000 cluster 8gb · open-lambda/open-lambda@0af900c · GitHub
[go: up one dir, main page]

Skip to content

Commit 0af900c

Browse files
committed
cluster 8gb
1 parent 9d59309 commit 0af900c

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

src/boss/cloudvm/azure_worker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func (worker *Worker) start(firstTime bool) error {
142142
run_one_time := "sudo python3 run_worker.py"
143143

144144
var run_worker_up string
145-
run_worker_up = fmt.Sprintf("sudo ./ol worker up -i ol-min -d -o import_cache_tree=%s,worker_url=0.0.0.0,features.warmup=false,limits.mem_mb=600,mem_pool_mb=8192,trace.evictor=true", tree_path)
145+
run_worker_up = fmt.Sprintf("sudo ./ol worker up -i ol-min -d -o import_cache_tree=%s,worker_url=0.0.0.0,features.warmup=false,limits.mem_mb=500,mem_pool_mb=8192,trace.evictor=true", tree_path)
146146

147147
var cmd string
148148
if firstTime {

src/boss/cloudvm/worker.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ func (pool *WorkerPool) RunLambda(w http.ResponseWriter, r *http.Request) {
600600
smallWorker = curWorker
601601
}
602602
}
603-
if smallWorkerTask < (worker.numTask - 40) {
603+
if smallWorkerTask < (worker.numTask - 16) {
604604
worker = smallWorker
605605
}
606606

@@ -831,9 +831,7 @@ func (pool *WorkerPool) ChangePolicy(policy string) {
831831

832832
// forward request to worker
833833
// TODO: this is kept for other platforms
834-
var client = &http.Client{
835-
Timeout: time.Second * 10,
836-
}
834+
var client = &http.Client{}
837835

838836
func forwardTaskHelper(w http.ResponseWriter, req *http.Request, workerIp string) error {
839837
host := fmt.Sprintf("%s:%d", workerIp, 5000) //TODO: read from config

src/common/config.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func LoadDefaults(olPath string) error {
168168
Procs: 10,
169169
Mem_mb: 50,
170170
CPU_percent: 100,
171-
Max_runtime_default: 180,
171+
Max_runtime_default: 90,
172172
Installer_mem_mb: 500,
173173
Swappiness: 0,
174174
},
@@ -178,6 +178,7 @@ func LoadDefaults(olPath string) error {
178178
Enable_seccomp: true,
179179
Warmup: false,
180180
COW: true,
181+
Reuse_cgroups: true,
181182
},
182183
Trace: TraceConfig{
183184
Cgroups: false,

src/worker/sandbox/evictors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
// evictor can only run if there's enough memory for two containers.
1414
// if there are only 2, our goal is to have free mem for on container.
1515
// 20% only applies to containers in excess of 2.
16-
const FREE_SANDBOXES_PERCENT_GOAL = 10
16+
const FREE_SANDBOXES_PERCENT_GOAL = 20
1717

1818
// the maximum number of evictions we'll do concurrently
1919
const CONCURRENT_EVICTIONS = 8

0 commit comments

Comments
 (0)
0