CentaurusInfra / arktos

Arktos for large-scale cloud platform
Apache License 2.0
245 stars 69 forks source link

[Scale out POC] Tenant zeta request was not redirected to TP2 master correctly [current proxy limitation] #1056

Open Sindica opened 3 years ago

Sindica commented 3 years ago

What happened:

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

image

Sindica commented 3 years ago

One second thought, this may not be an bug for now since proxy probably only redirects based on url, not by post data. Create tenant is a post request that tenant name is contained in body but not url.

XiaoningDing commented 3 years ago

@Sindica Yes, currently our proxy cannot redirect the tenant creation requests since the tenant name is not in the POST url. In previous tests we also create tenants against different TPs directly.

In the complete design there will be a module to decide which TP this new tenant should be placed on. This module should support various plugin-style placement algorithms, so the placement policy can be very flexible (like random, round-robin, load-balanced, name-based, whitelist-based, etc.)