Compare commits
No commits in common. "70a2fb69bb10c350c8f17dac489d1fa3d242a1d2" and "8593b3fd20f68975de4eeaf8f6a5dd024a37c0d6" have entirely different histories.
70a2fb69bb
...
8593b3fd20
@ -34,14 +34,9 @@ Tested with Ubuntu 22.10 (from Proxmox templates), actually its consuming 100mb
|
|||||||
|
|
||||||
**HA Setup Notes**
|
**HA Setup Notes**
|
||||||
|
|
||||||
- only *failover mode* is supported by team-green (see *high availability* in official user guide)
|
|
||||||
- make sure you're using same configuration on each node
|
- make sure you're using same configuration on each node
|
||||||
- use same `instance.private.pem` and `instance.private.key` on each node
|
- use same `instance.private.pem` and `instance.private.key` on each node
|
||||||
|
|
||||||
If you want to use *real* HA, you should use a proxy in front of this service and use a clustered database in backend.
|
|
||||||
This is not documented and supported by me, but it *can* work. Please ask the community for help.
|
|
||||||
Maybe the simplest solution for HA-ing this service is to use a Docker-Swarm with redundant storage and database.
|
|
||||||
|
|
||||||
## Docker
|
## Docker
|
||||||
|
|
||||||
Docker-Images are available here:
|
Docker-Images are available here:
|
||||||
|
@ -262,9 +262,9 @@ async def _client_token():
|
|||||||
|
|
||||||
@app.get('/-/ha/replicate', summary='* HA Sync')
|
@app.get('/-/ha/replicate', summary='* HA Sync')
|
||||||
async def _ha_replicate_to_ha(request: Request, background_tasks: BackgroundTasks):
|
async def _ha_replicate_to_ha(request: Request, background_tasks: BackgroundTasks):
|
||||||
if HA_REPLICATE is None or HA_ROLE is None:
|
if HA_REPLICATE is None:
|
||||||
logger.warning('HA replicate endpoint triggerd, but no value for "HA_REPLICATE" or "HA_ROLE" is set!')
|
logger.warning('HA replicate endpoint triggerd, but no value for "HA_REPLICATE" is set!')
|
||||||
return JSONr(status_code=503, content={'status': 503, 'detail': 'no value for "HA_REPLICATE" or "HA_ROLE" set'})
|
return JSONr(status_code=503, content={'status': 503, 'detail': 'no value for "HA_REPLICATE" set'})
|
||||||
background_tasks.add_task(ha_replicate, logger, HA_REPLICATE, HA_ROLE, VERSION, DLS_URL, DLS_PORT, SITE_KEY_XID, INSTANCE_REF)
|
background_tasks.add_task(ha_replicate, logger, HA_REPLICATE, HA_ROLE, VERSION, DLS_URL, DLS_PORT, SITE_KEY_XID, INSTANCE_REF)
|
||||||
return JSONr(status_code=202, content=None)
|
return JSONr(status_code=202, content=None)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user