24 days ago
Is there a way to query the live replica count of a service instance via the Railway GraphQL API?
I can set the replica count using serviceInstanceUpdate through multiRegionConfig. This mutation runs successfully and on the UI the number of replicas changes. However I see no indication via the UI that the new replicas are actually being built & deployed which is a little concerning.
On the GraphQl side I haven't found a reliable way to show the current number of replicas running. numReplicas in serviceInstance seems to be deprecated and doesn’t match the UI, it always is 3 regardless of what it is set via the UI or the API.
Is there an equivalent to “actual running replicas” exposed anywhere in the API?
Or is this due to me still using nixpacks? Do I need to upgrade to Railpacks first for this to work?
I currently get these outputs from serviceInstance as well:
"region": null,
"isUpdatable": false,
"numReplicas": 32 Replies
24 days ago
Hello,
It might be helpful to see how the CLI handles this.
Awesome it appears to work with this. Will use this as a reference moving forward. Thanks!
Status changed to Solved brody • 23 days ago