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

multi-tenant support #187

Open
neverchanje opened this issue Oct 10, 2018 · 1 comment
Open

multi-tenant support #187

neverchanje opened this issue Oct 10, 2018 · 1 comment
Assignees
Labels
type/enhancement Indicates new feature requests

Comments

@neverchanje
Copy link
Contributor

neverchanje commented Oct 10, 2018

We can consider to assign a "cache quota" to app when we support multi-tenant.
For example given with a specific SLA requirement, we can assign the memory size of block cache to each replica according to the following algorithm:

                                    lower qps require smaller cache
                                                    |
(data_size / partition_count / 5) *  (read_qps / partition_count / 100)
                |
   single partition data size, 1/5 is the memory/disk ratio

For a app that has 2000 read qps, 200 GB estimate data size, with 128 partitions,
the cache size is:

(200GB / 128 / 5) * (2000 / 128 / 100)  = 50MB
@neverchanje neverchanje added the type/enhancement Indicates new feature requests label Oct 10, 2018
@neverchanje
Copy link
Contributor Author

@neverchanje neverchanje self-assigned this Apr 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Indicates new feature requests
Projects
None yet
Development

No branches or pull requests

1 participant