openshiftio / openshift.io

Red Hat OpenShift.io is an end-to-end development environment for planning, building and deploying modern applications.
https://openshift.io
97 stars 66 forks source link

Multi Cluster support #948

Open alexeykazakov opened 7 years ago

alexeykazakov commented 7 years ago

Users can be provisioned to different OS clusters. So, OSIO services should handle it properly.

There are two main scenarios:

  1. A user (space owner/collaborator) is working on a space/codebase in the same cluster.
  2. A user (space collaborator) is working on a space/codebase which was created by another user and may be in a different cluster.

We will need to provide API which can be used to get the information about user's cluster. This info should be taken into account when working with a space (space owner and space collaborators may be in different clusters).

Initial strategy to manage which cluster users get to is that the registration app will default to the first cluster and we'll manually choose which users goto the other clusters. Once that is working we'll work on figuring out how to automatically do it - most likely will be either random choosing one or choose the one with the least load.

alexeykazakov commented 7 years ago

We need every OSIO team to prepare requirements for their services/parts. What info (provided by some new API) they would need to get to successfully support multi cluster. Any limitations and gotchas?

alexeykazakov commented 6 years ago

Tasks to be done to get Multi cluster support:

Steps to be done until we have OSO Proxy in place:

OSO Proxy:

New Proxy service

aslakknutsen commented 6 years ago

I've noted down these as currently missing for the complete flow between registration, auth and tenant. (they might overlap with some above)

@alexeykazakov Could you get @xcoulon up to speed on these and get the basic plubming for the fow up and running?

alexeykazakov commented 6 years ago

Sure @aslakknutsen. And I will update the list above with links to the issues we are currently working on.

adisakala commented 6 years ago

@surajssd

sbose78 commented 6 years ago

the flow should change to tenant init on user registration/approval instead of first access

@alexeykazakov Is this something that we need to do on the Auth side after user creation is triggered from online-registration ?

alexeykazakov commented 6 years ago

@sbose78 yes. We should do it as soon as the registration app switches to the new API. I've created an issue for that - https://github.com/fabric8-services/fabric8-auth/issues/226

joshuawilson commented 6 years ago

@maxandersen SEVerity is only for bugs.

arunkumars08 commented 6 years ago

@alexeykazakov Is the proxy url ready and if so, is there a place where I can go check on how to consume them? Just curious to know.

sbose78 commented 6 years ago

No @arunkumars08 , The proxy url is not available yet for consumption. @aslakknutsen is working on it.

arunkumars08 commented 6 years ago

@sbose78 Thanks Shoubik for the update. Will follow up with @aslakknutsen

fche commented 6 years ago

For OSO tenant monitoring, we will only need https://github.com/fabric8-services/fabric8-tenant/issues/369 - the tenant enumeration API that gives us the cluster+tenant route base URLs.

joshuawilson commented 6 years ago

@alexeykazakov @aslakknutsen what are we missing to close this?

sbose78 commented 6 years ago

"New Cluster(s) available and ready to get new users provisioned."

The above piece is not done - new cluster is available but not ready to provision users because of the performance issues being tracked by @jfchevrette .