-
Notifications
You must be signed in to change notification settings - Fork 51
How to avoid issues with k8s service number limit in WS.NEXT #934
Comments
Related rh-che issue redhat-developer/rh-che#934
@garagatyi what do you think would be the appropriate number of services ? We might be able to simply update the limits after discussing with SD ?
|
@ibuziuk I feel like this could be a problem in general, if plugins are allowed to require a service. It would mean the service number quota would govern how many plugins can be added to a workspace. |
We can tune it but @amisevsk is right - we need to think what solution would be the best in a long term |
Good catch @garagatyi. Anyway not all plugins will run in a separate container. I think that 10 services should be enough for 90% of the cases. 15 services would be even better. Let's ask SD team if we can increase it to 15. |
PR where we could start discussion with SD regarding service quota increase - fabric8-services/fabric8-tenant-che#113 |
@garagatyi Wouldn't it be possible to have a single "plugins" service that maps all of the appropriate ports? This could avoid the issue entirely. On the provisioning end, this could be done by simply modifying |
We use endpoints names for service discovery. As far as I know it is only possible to do that with setting a service name equal to an endpoint name. |
PR have been merged fabric8-services/fabric8-tenant-che#113 now there are new |
I created an issue to optimize usage of l8s services eclipse-che/che#11452 |
can we simply close this issue since |
yes, I agree |
Issue problem:
In WS.NEXT we use k8s services for sidecars service discovery. This means that Theia (2 endpoints) + 3 plugin sidecars might generate 5 services. Apart from that, Che generates a service for each container in a workspace to expose public ports of servers (including sidecar's public endpoints).
Right now we have a limit of 5 services in OSIO namespace and this leads us to a situation when WS.NEXT workspace hits quota issue.
We can optimize the usage of services by public servers/endpoints to 1 per pod.
But we still have issues in a case when even 3 plugins with sidecars are used. An example is a WS with
Such a workspace would not be able to start because of quotas. We need to find a solution for that.
The text was updated successfully, but these errors were encountered: