Skip to content

Commit f5db798

Browse files
Update site probabilities for PRG trial (#115)
* Restore --no-promote option to production deployment * Adjust PRG and regional cloud probabilities
1 parent 792d69e commit f5db798

File tree

2 files changed

+30
-4
lines changed

2 files changed

+30
-4
lines changed

cloudbuild/cloudbuild.yaml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ steps:
1717
- go test ./... -race
1818
- go test -v ./...
1919

20-
# Deployment of APIs in sandbox, staging, and mlab-ns.
20+
# Deployment of APIs in sandbox & staging.
2121
- name: gcr.io/$PROJECT_ID/gcloud-jsonnet-cbif:1.18
2222
env:
2323
# Use cbif condition: only run these steps in one of these projects.
24-
- PROJECT_IN=mlab-sandbox,mlab-staging,mlab-ns
24+
- PROJECT_IN=mlab-sandbox,mlab-staging
2525
args:
2626
- cp cloudbuild/app.yaml.template app.yaml
2727
- >
@@ -34,3 +34,21 @@ steps:
3434
# After deploying the new service, deploy the openapi spec.
3535
- sed -i -e 's/{{PROJECT}}/$PROJECT_ID/' openapi.yaml
3636
- gcloud endpoints services deploy openapi.yaml
37+
38+
# Deployment of APIs in mlab-ns.
39+
- name: gcr.io/$PROJECT_ID/gcloud-jsonnet-cbif:1.18
40+
env:
41+
# Use cbif condition: only run these steps in one of these projects.
42+
- PROJECT_IN=mlab-ns
43+
args:
44+
- cp cloudbuild/app.yaml.template app.yaml
45+
- >
46+
sed -i
47+
-e 's/{{PROJECT}}/$PROJECT_ID/g'
48+
-e 's/{{PLATFORM_PROJECT}}/$_PLATFORM_PROJECT/'
49+
-e 's/{{REDIS_ADDRESS}}/$_REDIS_ADDRESS/'
50+
app.yaml
51+
- gcloud --project $PROJECT_ID app deploy --no-promote app.yaml
52+
# After deploying the new service, deploy the openapi spec.
53+
- sed -i -e 's/{{PROJECT}}/$PROJECT_ID/' openapi.yaml
54+
- gcloud endpoints services deploy openapi.yaml

static/configs.go

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ var SiteProbability = map[string]float64{
9292
"cmh01": 0.2, // virtual site
9393
"del03": 0.2, // virtual site
9494
"dfw09": 0.2, // virtual site
95-
"fra07": 0.2, // virtual site
95+
"fra07": 1.0, // virtual site
9696
"gru01": 0.1,
9797
"gru02": 0.1,
9898
"gru03": 0.1,
@@ -117,6 +117,14 @@ var SiteProbability = map[string]float64{
117117
"mil08": 0.2, // virtual site
118118
"oma01": 0.2, // virtual site
119119
"ord07": 0.2, // virtual site
120+
121+
// TRIAL(github.com/m-lab/ops-tracker/issues/1720) for PRG metro.
122+
"prg02": 0.3,
123+
"prg03": 0.3,
124+
"prg04": 0.3,
125+
"prg05": 0.3,
126+
"prg06": 0.3,
127+
120128
"par08": 0.2, // virtual site
121129
"pdx01": 0.2, // virtual site
122130
"scl05": 0.2, // virtual site
@@ -127,7 +135,7 @@ var SiteProbability = map[string]float64{
127135
"tpe02": 0.2, // virtual site
128136
"tun01": 0.5,
129137
"vie01": 0.5,
130-
"waw01": 0.2, // virtual site
138+
"waw01": 1.0, // virtual site
131139
"yqm01": 0.5,
132140
"yul02": 0.2, // 0.2
133141
"yul07": 0.2, // virtual site

0 commit comments

Comments
 (0)