-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed race condition in MsgElement::retrieve.
- Loading branch information
Showing
43 changed files
with
871 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
admin/tools/docker/index/container/dev/clientNum/appClientNumScreen.bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#! /bin/bash -l | ||
# admin/tools/docker/loader/container/dev/clientNum/appClientNum.bash | ||
|
||
_term() { | ||
echo "Caught SIGTERM signal!" | ||
kill -TERM "$child" 2>/dev/null | ||
} | ||
|
||
trap _term SIGTERM | ||
trap _term SIGKILL | ||
|
||
|
||
echo appClientScreen $1 $2 $3 | ||
|
||
screen -dm /home/qserv/dev/qserv/admin/tools/docker/index/container/dev/clientNum/appClientNum $1 $2 $3 | ||
|
||
child=$! | ||
wait "$child" | ||
tail -f /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,4 @@ echo "child ${child}" | |
wait "$child" | ||
|
||
sleep 10000 | ||
tail -f /dev/null |
19 changes: 19 additions & 0 deletions
19
admin/tools/docker/index/container/dev/worker/appWorkerScreen.bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#! /bin/bash | ||
# admin/tools/docker/loader/container/dev/worker/appWorker.bash | ||
|
||
_term() { | ||
echo "Caught SIGTERM signal!" | ||
kill -TERM "$child" 2>/dev/null | ||
} | ||
|
||
trap _term SIGTERM | ||
trap _term SIGKILL | ||
|
||
screen -dm /home/qserv/dev/qserv/admin/tools/docker/index/container/dev/worker/appWorker.bash | ||
|
||
child=$! | ||
echo "child ${child}" | ||
wait "$child" | ||
|
||
sleep 10000 | ||
tail -f /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,206 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: imaster-svc | ||
labels: | ||
app: index | ||
spec: | ||
ports: | ||
- port: 10042 | ||
protocol: UDP | ||
clusterIP: None | ||
selector: | ||
app: imaster-pod | ||
--- | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: imaster-sts | ||
labels: | ||
app: index | ||
spec: | ||
serviceName: imaster-svc | ||
podManagementPolicy: Parallel | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: imaster-pod | ||
template: | ||
metadata: | ||
labels: | ||
app: imaster-pod | ||
spec: | ||
containers: | ||
- name: imaster-ctr | ||
image: qserv/indexmaster:dev | ||
imagePullPolicy: Always | ||
ports: | ||
- containerPort: 10042 | ||
protocol: UDP | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: iworker-svc | ||
labels: | ||
app: index | ||
spec: | ||
ports: | ||
- port: 10043 | ||
protocol: UDP | ||
clusterIP: None | ||
selector: | ||
app: iworker-pod | ||
--- | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: iworker-sts | ||
labels: | ||
app: index | ||
spec: | ||
serviceName: iworker-svc | ||
podManagementPolicy: Parallel | ||
replicas: 3 | ||
selector: | ||
matchLabels: | ||
app: iworker-pod | ||
template: | ||
metadata: | ||
labels: | ||
app: iworker-pod | ||
spec: | ||
containers: | ||
- name: iworker-ctr | ||
image: qserv/indexworker:dev | ||
imagePullPolicy: Always | ||
ports: | ||
- containerPort: 10043 | ||
protocol: UDP | ||
- containerPort: 10143 | ||
protocol: TCP | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: iclientnum-svc | ||
labels: | ||
app: index | ||
spec: | ||
ports: | ||
- port: 10050 | ||
protocol: UDP | ||
clusterIP: None | ||
selector: | ||
app: iclientnum-pod | ||
--- | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: iclientnum-sts | ||
labels: | ||
app: index | ||
spec: | ||
serviceName: iclientnum-svc | ||
podManagementPolicy: Parallel | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: iclientnum-pod | ||
template: | ||
metadata: | ||
labels: | ||
app: iclientnum-pod | ||
spec: | ||
containers: | ||
- name: iclientnum-ctr | ||
image: qserv/indexclientnum:dev | ||
imagePullPolicy: Always | ||
args: ["1000000", "1", "client-k8s-a1.cnf"] | ||
ports: | ||
- containerPort: 10050 | ||
protocol: UDP | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: iclientnum2-svc | ||
labels: | ||
app: index | ||
spec: | ||
ports: | ||
- port: 10050 | ||
protocol: UDP | ||
clusterIP: None | ||
selector: | ||
app: iclientnum2-pod | ||
--- | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: iclientnum2-sts | ||
labels: | ||
app: index | ||
spec: | ||
serviceName: iclientnum2-svc | ||
podManagementPolicy: Parallel | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: iclientnum2-pod | ||
template: | ||
metadata: | ||
labels: | ||
app: iclientnum2-pod | ||
spec: | ||
containers: | ||
- name: iclientnum2-ctr | ||
image: qserv/indexclientnum:dev | ||
imagePullPolicy: Always | ||
args: ["2000001", "3000001", "client-k8s-a2.cnf"] | ||
ports: | ||
- containerPort: 10050 | ||
protocol: UDP | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: iclientnum3-svc | ||
labels: | ||
app: index | ||
spec: | ||
ports: | ||
- port: 10050 | ||
protocol: UDP | ||
clusterIP: None | ||
selector: | ||
app: iclientnum3-pod | ||
--- | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: iclientnum3-sts | ||
labels: | ||
app: index | ||
spec: | ||
serviceName: iclientnum3-svc | ||
podManagementPolicy: Parallel | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: iclientnum3-pod | ||
template: | ||
metadata: | ||
labels: | ||
app: iclientnum3-pod | ||
spec: | ||
containers: | ||
- name: iclientnum3-ctr | ||
image: qserv/indexclientnum:dev | ||
imagePullPolicy: Always | ||
args: ["1000001", "2000000", "client-k8s-a3.cnf"] | ||
ports: | ||
- containerPort: 10050 | ||
protocol: UDP | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.