|
155 | 155 | ISOCHRONE_DEFAULT_VALUE = os.getenv('JORMUNGANDR_ISOCHRONE_DEFAULT_VALUE', 1800) # in s
|
156 | 156 |
|
157 | 157 | # circuit breaker parameters.
|
158 |
| -CIRCUIT_BREAKER_MAX_INSTANCE_FAIL = 4 # max instance call failures before stopping attempt |
159 |
| -CIRCUIT_BREAKER_INSTANCE_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) |
160 |
| - |
161 |
| -CIRCUIT_BREAKER_MAX_TIMEO_FAIL = 4 # max instance call failures before stopping attempt |
162 |
| -CIRCUIT_BREAKER_TIMEO_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) |
163 |
| - |
164 |
| -CIRCUIT_BREAKER_MAX_SYNTHESE_FAIL = 4 # max instance call failures before stopping attempt |
165 |
| -CIRCUIT_BREAKER_SYNTHESE_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) |
166 |
| - |
167 |
| -CIRCUIT_BREAKER_MAX_JCDECAUX_FAIL = 4 # max instance call failures before stopping attempt |
168 |
| -CIRCUIT_BREAKER_JCDECAUX_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) |
169 |
| - |
170 |
| -CIRCUIT_BREAKER_MAX_CAR_PARK_FAIL = 4 # max instance call failures before stopping attempt |
171 |
| -CIRCUIT_BREAKER_CAR_PARK_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) |
172 |
| - |
173 |
| -CIRCUIT_BREAKER_MAX_CLEVERAGE_FAIL = 4 # max instance call failures before stopping attempt |
174 |
| -CIRCUIT_BREAKER_CLEVERAGE_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) |
175 |
| - |
176 |
| -CIRCUIT_BREAKER_MAX_SYTRAL_FAIL = 4 # max instance call failures before stopping attempt |
177 |
| -CIRCUIT_BREAKER_SYTRAL_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) |
178 |
| - |
179 |
| -CIRCUIT_BREAKER_MAX_VALHALLA_FAIL = 4 # max instance call failures before stopping attempt |
180 |
| -CIRCUIT_BREAKER_VALHALLA_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) |
181 |
| - |
182 |
| -CIRCUIT_BREAKER_MAX_GEOVELO_FAIL = 4 # max instance call failures before stopping attempt |
183 |
| -CIRCUIT_BREAKER_GEOVELO_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) |
184 |
| - |
185 |
| -CIRCUIT_BREAKER_MAX_HERE_FAIL = 4 # max instance call failures before stopping attempt |
186 |
| -CIRCUIT_BREAKER_HERE_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) |
187 |
| - |
188 |
| -CIRCUIT_BREAKER_MAX_CYKLEO_FAIL = 4 # max instance call failures before stopping attempt |
189 |
| -CIRCUIT_BREAKER_CYKLEO_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) |
190 |
| - |
191 |
| -CIRCUIT_BREAKER_MAX_INSTANT_SYSTEM_FAIL = 4 # max instance call failures before stopping attempt |
192 |
| -CIRCUIT_BREAKER_INSTANT_SYSTEM_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) |
193 |
| - |
194 |
| -CIRCUIT_BREAKER_MAX_BLABLALINES_FAIL = 4 # max instance call failures before stopping attempt |
195 |
| -CIRCUIT_BREAKER_BLABLALINES_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) |
196 |
| - |
197 |
| -CIRCUIT_BREAKER_MAX_KAROS_FAIL = 4 # max instance call failures before stopping attempt |
198 |
| -CIRCUIT_BREAKER_KAROS_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) |
199 |
| - |
200 |
| -CIRCUIT_BREAKER_MAX_BRAGI_FAIL = 4 # max instance call failures before stopping attempt |
201 |
| -CIRCUIT_BREAKER_BRAGI_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) |
202 |
| - |
203 |
| -CIRCUIT_BREAKER_MAX_ASGARD_FAIL = 4 # max instance call failures before stopping attempt |
204 |
| -CIRCUIT_BREAKER_ASGARD_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) |
205 |
| - |
206 |
| -CIRCUIT_BREAKER_MAX_KLAXIT_FAIL = 4 # max instance call failures before stopping attempt |
207 |
| -CIRCUIT_BREAKER_KLAXIT_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) |
208 |
| - |
209 |
| -CIRCUIT_BREAKER_MAX_OUESTGO_FAIL = 4 # max instance call failures before stopping attempt |
210 |
| -CIRCUIT_BREAKER_OUESTGO_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) |
211 |
| - |
212 |
| -CIRCUIT_BREAKER_MAX_FORSETI_FAIL = 4 # max instance call failures before stopping attempt |
213 |
| -CIRCUIT_BREAKER_FORSETI_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) |
| 158 | +CIRCUIT_BREAKER_MAX_INSTANCE_FAIL = int( |
| 159 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_INSTANCE_FAIL', 4) |
| 160 | +) # max instance call failures before stopping attempt |
| 161 | +CIRCUIT_BREAKER_INSTANCE_TIMEOUT_S = int( |
| 162 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_INSTANCE_TIMEOUT_S', 60) |
| 163 | +) # the circuit breaker retries after this timeout (in seconds) |
| 164 | + |
| 165 | +CIRCUIT_BREAKER_MAX_TIMEO_FAIL = int( |
| 166 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_TIMEO_FAIL', 4) |
| 167 | +) # max instance call failures before stopping attempt |
| 168 | +CIRCUIT_BREAKER_TIMEO_TIMEOUT_S = int( |
| 169 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_TIMEO_TIMEOUT_S', 60) |
| 170 | +) # the circuit breaker retries after this timeout (in seconds) |
| 171 | + |
| 172 | +CIRCUIT_BREAKER_MAX_SYNTHESE_FAIL = int( |
| 173 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_SYNTHESE_FAIL', 4) |
| 174 | +) # max instance call failures before stopping attempt |
| 175 | +CIRCUIT_BREAKER_SYNTHESE_TIMEOUT_S = int( |
| 176 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_SYNTHESE_TIMEOUT_S', 60) |
| 177 | +) # the circuit breaker retries after this timeout (in seconds) |
| 178 | + |
| 179 | +CIRCUIT_BREAKER_MAX_JCDECAUX_FAIL = int( |
| 180 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_JCDECAUX_FAIL', 4) |
| 181 | +) # max instance call failures before stopping attempt |
| 182 | +CIRCUIT_BREAKER_JCDECAUX_TIMEOUT_S = int( |
| 183 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_JCDECAUX_TIMEOUT_S', 60) |
| 184 | +) # the circuit breaker retries after this timeout (in seconds) |
| 185 | + |
| 186 | +CIRCUIT_BREAKER_MAX_CAR_PARK_FAIL = int( |
| 187 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_CAR_PARK_FAIL', 4) |
| 188 | +) # max instance call failures before stopping attempt |
| 189 | +CIRCUIT_BREAKER_CAR_PARK_TIMEOUT_S = int( |
| 190 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_CAR_PARK_TIMEOUT_S', 60) |
| 191 | +) # the circuit breaker retries after this timeout (in seconds) |
| 192 | + |
| 193 | +CIRCUIT_BREAKER_MAX_CLEVERAGE_FAIL = int( |
| 194 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_CLEVERAGE_FAIL', 4) |
| 195 | +) # max instance call failures before stopping attempt |
| 196 | +CIRCUIT_BREAKER_CLEVERAGE_TIMEOUT_S = int( |
| 197 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_CLEVERAGE_TIMEOUT_S', 60) |
| 198 | +) # the circuit breaker retries after this timeout (in seconds) |
| 199 | + |
| 200 | +CIRCUIT_BREAKER_MAX_SYTRAL_FAIL = int( |
| 201 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_SYTRAL_FAIL', 4) |
| 202 | +) # max instance call failures before stopping attempt |
| 203 | +CIRCUIT_BREAKER_SYTRAL_TIMEOUT_S = int( |
| 204 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_SYTRAL_TIMEOUT_S', 60) |
| 205 | +) # the circuit breaker retries after this timeout (in seconds) |
| 206 | + |
| 207 | +CIRCUIT_BREAKER_MAX_VALHALLA_FAIL = int( |
| 208 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_VALHALLA_FAIL', 4) |
| 209 | +) # max instance call failures before stopping attempt |
| 210 | +CIRCUIT_BREAKER_VALHALLA_TIMEOUT_S = int( |
| 211 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_VALHALLA_TIMEOUT_S', 60) |
| 212 | +) # the circuit breaker retries after this timeout (in seconds) |
| 213 | + |
| 214 | +CIRCUIT_BREAKER_MAX_GEOVELO_FAIL = int( |
| 215 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_GEOVELO_FAIL', 4) |
| 216 | +) # max instance call failures before stopping attempt |
| 217 | +CIRCUIT_BREAKER_GEOVELO_TIMEOUT_S = int( |
| 218 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_GEOVELO_TIMEOUT_S', 60) |
| 219 | +) # the circuit breaker retries after this timeout (in seconds) |
| 220 | + |
| 221 | +CIRCUIT_BREAKER_MAX_HERE_FAIL = int( |
| 222 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_HERE_FAIL', 4) |
| 223 | +) # max instance call failures before stopping attempt |
| 224 | +CIRCUIT_BREAKER_HERE_TIMEOUT_S = int( |
| 225 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_HERE_TIMEOUT_S', 60) |
| 226 | +) # the circuit breaker retries after this timeout (in seconds) |
| 227 | + |
| 228 | +CIRCUIT_BREAKER_MAX_CYKLEO_FAIL = int( |
| 229 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_CYKLEO_FAIL', 4) |
| 230 | +) # max instance call failures before stopping attempt |
| 231 | +CIRCUIT_BREAKER_CYKLEO_TIMEOUT_S = int( |
| 232 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_CYKLEO_TIMEOUT_S', 60) |
| 233 | +) # the circuit breaker retries after this timeout (in seconds) |
| 234 | + |
| 235 | +CIRCUIT_BREAKER_MAX_INSTANT_SYSTEM_FAIL = int( |
| 236 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_INSTANT_SYSTEM_FAIL', 4) |
| 237 | +) # max instance call failures before stopping attempt |
| 238 | +CIRCUIT_BREAKER_INSTANT_SYSTEM_TIMEOUT_S = int( |
| 239 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_INSTANT_SYSTEM_TIMEOUT_S', 60) |
| 240 | +) # the circuit breaker retries after this timeout (in seconds) |
| 241 | + |
| 242 | +CIRCUIT_BREAKER_MAX_BLABLALINES_FAIL = int( |
| 243 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_BLABLALINES_FAIL', 4) |
| 244 | +) # max instance call failures before stopping attempt |
| 245 | +CIRCUIT_BREAKER_BLABLALINES_TIMEOUT_S = int( |
| 246 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_BLABLALINES_TIMEOUT_S', 60) |
| 247 | +) # the circuit breaker retries after this timeout (in seconds) |
| 248 | + |
| 249 | +CIRCUIT_BREAKER_MAX_KAROS_FAIL = int( |
| 250 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_KAROS_FAIL', 4) |
| 251 | +) # max instance call failures before stopping attempt |
| 252 | +CIRCUIT_BREAKER_KAROS_TIMEOUT_S = int( |
| 253 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_KAROS_TIMEOUT_S', 60) |
| 254 | +) # the circuit breaker retries after this timeout (in seconds) |
| 255 | + |
| 256 | +CIRCUIT_BREAKER_MAX_BRAGI_FAIL = int( |
| 257 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_BRAGI_FAIL', 4) |
| 258 | +) # max instance call failures before stopping attempt |
| 259 | +CIRCUIT_BREAKER_BRAGI_TIMEOUT_S = int( |
| 260 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_BRAGI_TIMEOUT_S', 60) |
| 261 | +) # the circuit breaker retries after this timeout (in seconds) |
| 262 | + |
| 263 | +CIRCUIT_BREAKER_MAX_ASGARD_FAIL = int( |
| 264 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_ASGARD_FAIL', 4) |
| 265 | +) # max instance call failures before stopping attempt |
| 266 | +CIRCUIT_BREAKER_ASGARD_TIMEOUT_S = int( |
| 267 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_ASGARD_TIMEOUT_S', 60) |
| 268 | +) # the circuit breaker retries after this timeout (in seconds) |
| 269 | + |
| 270 | +CIRCUIT_BREAKER_MAX_KLAXIT_FAIL = int( |
| 271 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_KLAXIT_FAIL', 4) |
| 272 | +) # max instance call failures before stopping attempt |
| 273 | +CIRCUIT_BREAKER_KLAXIT_TIMEOUT_S = int( |
| 274 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_KLAXIT_TIMEOUT_S', 60) |
| 275 | +) # the circuit breaker retries after this timeout (in seconds) |
| 276 | + |
| 277 | +CIRCUIT_BREAKER_MAX_OUESTGO_FAIL = int( |
| 278 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_OUESTGO_FAIL', 4) |
| 279 | +) # max instance call failures before stopping attempt |
| 280 | +CIRCUIT_BREAKER_OUESTGO_TIMEOUT_S = int( |
| 281 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_OUESTGO_TIMEOUT_S', 60) |
| 282 | +) # the circuit breaker retries after this timeout (in seconds) |
| 283 | + |
| 284 | +CIRCUIT_BREAKER_MAX_FORSETI_FAIL = int( |
| 285 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_FORSETI_FAIL', 4) |
| 286 | +) # max instance call failures before stopping attempt |
| 287 | +CIRCUIT_BREAKER_FORSETI_TIMEOUT_S = int( |
| 288 | + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_FORSETI_TIMEOUT_S', 60) |
| 289 | +) # the circuit breaker retries after this timeout (in seconds) |
214 | 290 |
|
215 | 291 |
|
216 | 292 | # Default region instance
|
|
0 commit comments