-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlaunch.yaml
91 lines (83 loc) · 2.54 KB
/
launch.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
global:
environment:
# --- Project variables ---
DIR_PORT: 9000
# --- Cogment variables ---
COGMENT_LOG_LEVEL: warning
COGMENT_ENTERPRISE_LOG_LEVEL: warning
COGMENT_DIRECTORY_ENDPOINT: "grpc://localhost:{{.DIR_PORT}}"
COGMENT_DATA_DIR: ".cogment"
scripts:
directory:
environment:
COGMENT_DIRECTORY_PORT: "{{.DIR_PORT}}"
COGMENT_DIRECTORY_REGISTRATION_LAG: 5
COGMENT_LOG_LEVEL: info # Requires at least "info" to get the ready_output
COGMENT_DIRECTORY_PERSISTENCE_FILE: ""
commands:
- ["cogment", "services", "directory"]
ready_output: 'Listening \[port:{{.DIR_PORT}}\]'
orchestrator:
depends_on:
- directory
environment:
COGMENT_LIFECYCLE_PORT: 0
COGMENT_ACTOR_PORT: 0
COGMENT_ORCHESTRATOR_PROMETHEUS_PORT: 0
COGMENT_LOG_LEVEL: info # Requires at least "info" to get the ready_output
COGMENT_ORCHESTRATOR_DIRECTORY_REGISTRATION_HOST: localhost
commands:
- ["cogment", "services", "orchestrator"]
ready_output: "Trial Lifecycle service active"
datastore:
depends_on:
- directory
environment:
COGMENT_TRIAL_DATASTORE_DIRECTORY_REGISTRATION_PROPERTIES: "type=datastore,bench"
COGMENT_TRIAL_DATASTORE_PORT: 0
COGMENT_TRIAL_DATASTORE_FILE_STORAGE_PATH: "{{.COGMENT_DATA_DIR}}/datastore.db"
COGMENT_TRIAL_DATASTORE_DIRECTORY_REGISTRATION_HOST: localhost
commands:
- ["mkdir", "-p", "{{.COGMENT_DATA_DIR}}"]
- ["cogment", "services", "trial_datastore"]
model_registry:
depends_on:
- directory
environment:
COGMENT_MODEL_REGISTRY_ARCHIVE_DIR: "{{.COGMENT_DATA_DIR}}/models"
COGMENT_MODEL_REGISTRY_PORT: 0
COGMENT_MODEL_REGISTRY_VERSION_CACHE_MAX_ITEMS: 100
COGMENT_MODEL_REGISTRY_DIRECTORY_REGISTRATION_HOST: localhost
commands:
- ["mkdir", "-p", "{{.COGMENT_MODEL_REGISTRY_ARCHIVE_DIR}}"]
- ["cogment", "services", "model_registry"]
environment:
depends_on:
- directory
commands:
- ["python3", "environment.py"]
rl_actor:
depends_on:
- directory
environment:
#TORCH_DEVICE_STRING: "cuda:0"
TORCH_DEVICE_STRING: "cpu"
commands:
- ["python3", "rl_actor.py"]
runner:
depends_on:
- directory
- orchestrator
environment:
#TORCH_DEVICE_STRING: "cuda:1"
TORCH_DEVICE_STRING: "cpu"
commands:
- [
"python3",
"runner.py",
"{{.__1}}",
"{{.__2}}",
"{{.__3}}",
"{{.__4}}",
"{{.__5}}",
]