Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add multi-tenancy-draft-design doc #393

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

coocood
Copy link
Collaborator

@coocood coocood commented Jun 2, 2020

No description provided.

@coocood coocood changed the title add multi-tenant-draft-design doc add multi-tenancy-draft-design doc Jun 2, 2020
@coocood coocood mentioned this pull request Sep 2, 2020

### Quota

quota limits the resource usage of a tenant, there are three type of quota:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is the limit actually enforced?

### Security

- Communication layer security can be ensured by TLS.
- SST do not do any encryption, only do encrypt on backup.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can have encryption-at-rest for the whole DB, with encryption key managed by us, just that user provided encryption key is not supported.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we can decide "not support user-provided encryption key", but the PM

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Support or not will impact the way we store data.

We deduct the quota after serving the tenant's request,
When tenant's quota deducted to zero, we stop serving the request and returns an error.

Every tenant has a total quota, PD is responsible to divide the total quota to each KV node that

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quotas without scheduling means under-utilization when some tenants are not using their full quota (and other tenants could be bursting to use those resources).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants