ray.serve.context.GangContext#
- class ray.serve.context.GangContext(gang_id: str, rank: int, world_size: int, member_replica_ids: List[str])[source]#
Context information for a replica that is part of a gang.
DeveloperAPI: This API may change across minor Ray releases.
Methods
Attributes
Unique identifier for this gang.
This replica's rank within the gang (0-indexed).
Total number of replicas in this gang.
List of replica IDs in this gang, ordered by rank.