Open sonic-chain opened 1 year ago
@PlutoNbai please leave your comment about the CP log to Lagrange server and web.
we can refer the similar design
The new features have been developed in this branch: https://github.com/sonic-chain/go-computing-provider/tree/feat-cp-logs
Use case:
ws://[publicIp]:[port]/api/v1/computing/lagrange/spaces/log?space_id=xxxx&type=build
ws://[publicIp]:[port]/api/v1/computing/lagrange/spaces/log?space_id=xxxx&type=container
CP offers real-time display of pod running logs based on various space_uuids. Upon receiving a job, CP generates
build_log_url
andcontainer_log_url
, both of which are sent back to the server. The frontend utilizes these URLs to establish WebSocket objects and load the log data stream.