8000 bugfix · open-lambda/open-lambda@b43eb5b · GitHub
[go: up one dir, main page]

Skip to content

Commit b43eb5b

Browse files
committed
bugfix
1 parent 7a63641 commit b43eb5b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/boss/cloudvm/azure_vm.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ var create_lock sync.Mutex
5555

5656
func createVM(worker *Worker) (*AzureConfig, error) {
5757
vmName := worker.workerId
58-
diskName := "ol-boss_OsDisk_1_81346b108e79469f8783a3036b9a9486"
58+
diskName := "ol-boss2_OsDisk_1_8da6de19442346df9b8470232b767039"
5959
vnetName := "ol-boss-vnet"
6060
snapshotName := "ol-boss-snapshot"
6161
conn, err := connectionAzure()
@@ -96,7 +96,6 @@ func createVM(worker *Worker) (*AzureConfig, error) {
9696
}
9797
log.Println("start create snapshot")
9898
snapshot, err := createSnapshot(ctx, conn, *disk.ID, snapshotName)
99-
create_lock.Unlock()
10099
if err != nil {
101100
log.Print(err)
102101
return conf, err
@@ -109,6 +108,7 @@ func createVM(worker *Worker) (*AzureConfig, error) {
109108
return conf, err
110109
}
111110
log.Println("Created disk:", *new_disk.ID)
111+
create_lock.Unlock()
112112

113113
new_vm := new(vmStatus)
114114
// get network

src/boss/cloudvm/azure_worker.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ func (worker *Worker) start() error {
138138

139139
var run_worker_up string
140140
if loadbalancer.Lb.LbType == loadbalancer.Sharding {
141-
run_worker_up = "sudo ./ol worker up -i ol-min -d -o import_cache_tree=/home/azureuser/paper-tree-cache/analysis/16/trials/0/tree-v1.node-200.json,worker_url=0.0.0.0"
141+
run_worker_up = "sudo ./ol worker up -i ol-min -d -o import_cache_tree=/home/azureuser/paper-tree-cache/analysis/17/trials/0/tree-v2.node-320.json,worker_url=0.0.0.0,features.warmup=false"
142142
} else {
143-
run_worker_up = "sudo ./ol worker up -i ol-min -d -o import_cache_tree=/home/azureuser/paper-tree-cache/analysis/16/trials/0/tree-v1.node-200.json,worker_url=0.0.0.0"
143+
run_worker_up = "sudo ./ol worker up -i ol-min -d -o import_cache_tree=/home/azureuser/paper-tree-cache/analysis/17/trials/0/tree-v2.node-320.json,worker_url=0.0.0.0,features.warmup=false"
144144
}
145145

146146
cmd := fmt.Sprintf("cd %s; %s; cd %s; %s; cd %s; %s; %s",

src/boss/loadbalancer/sharding.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ func updateSubtreeCount(node *Node) int {
160160
func GetRoot() error {
161161
// Read the JSON file
162162
// TODO: not to hardcode
163-
fileContent, err := ioutil.ReadFile("/home/azureuser/paper-tree-cache/analysis/16/trials/0/tree-v1.node-200.json")
163+
fileContent, err := ioutil.ReadFile("/home/azureuser/paper-tree-cache/analysis/17/trials/0/tree-v2.node-320.json")
164164
if err != nil {
165165
return err
166166
}

0 commit comments

Comments
 (0)
0