Milvus multi tenant

Yes, open-source Milvus includes multi-tenancy at four levels under Apache 2.0, with no paid edition required. Isolation depends on turning on authentication, scoping RBAC grants and sizing against the default limits, which set how many tenants fit.

On this page

Does open-source Milvus support multi-tenancy without a paid plan?

Yes. Open-source Milvus, released under the Apache License 2.0, supports multi-tenancy at four levels: database, collection, partition and partition key. None of these levels requires a paid edition. Isolation, however, depends on settings you own: tenant separation holds only when authentication is enabled with authorizationEnabled and access is scoped by role. Before a platform review approves a tenant model, confirm that authentication is switched on in your deployment and that the default root password has been changed, because Milvus ships with a default root user. The sibling pages on SSO, RBAC and self-hosting cover those controls in detail, so this section only sets out the tenancy model and its limits.

The four levels differ mainly in how many tenants they can hold. Database-level tenancy is capped at 64 databases by default, adjustable with maxDatabaseNum in milvus.yaml. Collection-level tenancy allows up to 65,536 collections per cluster by default, adjustable with maxCollectionNum, so it supports the same number of tenants. Partition-level tenancy is limited to 1,024 manually created partitions per collection. Partition-key tenancy routes tenants into 16 physical partitions and is described as scaling to millions of tenants, which makes it the option for very large tenant counts. Confirm these limits against the version you deploy, since settings can change between releases. The Milvus multi-tenancy documentation is the next read for the exact configuration.

The choice is a trade-off between isolation and tenant count. Database and collection levels give each tenant its own boundary, which makes access scoping and audit evidence easier to explain to a reviewer, but they are capped by default at 64 and 65,536 tenants. Partition-key tenancy fits far more tenants, but tenants share physical partitions, so the review should ask how the access model and data handling controls keep their data separate. Before approval, write down the expected tenant count and the isolation the review requires, then choose the level that meets both. Raise any limit only after load testing at your planned scale, and record the setting in your configuration so auditors can trace it.

Which Milvus multi-tenancy features are built in and which need checking

This table compares the Milvus multi-tenancy features documented for open-source Milvus and lists what can be confirmed for Zilliz Cloud. Read the first five rows as built-in mechanisms with default limits, and treat the last row as an open question. The main takeaway is that the database, collection and partition-key options exist in open-source Milvus, while per-partition access and Zilliz plan details still need confirmation before you commit to a design.

CapabilityOpen-source MilvusZilliz CloudNotes
Database-level tenancyBuilt in, with 64 databases allowed by defaultPlan differences not confirmed. Check the pricing page and ask Zilliz.Raise the limit with maxDatabaseNum in milvus.yaml. This gives 64 tenants by default.
Collection-level tenancyBuilt in, with up to 65,536 collections per cluster by defaultPlan differences not confirmed. Check the pricing page and ask Zilliz.Adjust the limit with maxCollectionNum. Each tenant can map to its own collection.
Manual partitionsBuilt in, with up to 1,024 partitions per collectionPlan differences not confirmed. Check the pricing page and ask Zilliz.You create each partition yourself, so plan the provisioning step for every new tenant.
Partition-key tenancyBuilt in, routing tenants into 16 physical partitionsPlan differences not confirmed. Check the pricing page and ask Zilliz.Milvus describes this option as scaling to millions of tenants. Confirm this with your own load tests.
Access scoped per database or collectionBuilt in once authorizationEnabled is turned onPlan differences not confirmed. Check the pricing page and ask Zilliz.Enable authorizationEnabled first, then change the default root password before going live.
Access scoped per partition or per tenant quotaConfirm with Milvus before relying on itConfirm with Zilliz before relying on itAsk both vendors whether per-partition access or tenant quotas exist before you design around them.

How the four Milvus tenancy levels nest and enforce access

Milvus nests tenancy in four levels: a cluster holds databases, each database holds collections, each collection holds partitions, and a partition key routes the rows of one collection into shared physical partitions. The first three are objects you create and name, so each can serve as a tenant boundary. The partition key is a field on the data itself. The default limits differ sharply between levels. A cluster allows 64 databases by default, adjustable with maxDatabaseNum in milvus.yaml, so database-per-tenant tops out at 64 tenants unless you raise it. A cluster allows up to 65,536 collections by default through maxCollectionNum, and one collection supports up to 1,024 manually created partitions. Partition-key tenancy places each tenant into one of 16 physical partitions, which is how Milvus documents its scale to millions of tenants.

Data layout alone does not isolate tenants. Access control has to do that, and it starts when you set authorizationEnabled to true. The setting lives in milvus.yaml for Docker Compose, values.yaml for Helm, or the Milvus custom resource for the Operator. Once it is on, the proxy checks each request against RBAC grants. Milvus defines those grants at instance, database and collection level, so a tenant's user can be scoped to its own database or collection. Change the default root password before you enable authentication, because Milvus creates root with the password Milvus. Partition-key tenants share one collection, so a grant at collection level exposes every tenant's rows in it. Confirm in the RBAC documentation whether any grant can be limited by partition key before you plan on that boundary.

Traffic between tenant applications and the proxy is protected in transit only if you enable TLS. Milvus documents one-way and two-way TLS on the proxy, configured with tlsMode in milvus.yaml and certificate paths for the server key, server certificate and CA. Choose two-way TLS when you can issue client certificates to each tenant workload. Before you sign off the design, confirm the exact hierarchy, the partition-key routing behavior and the default limits against the Milvus multi-tenancy documentation, because these values are configurable and can differ by release. Record the limits you chose in the design so an operator can see how many tenants the cluster was sized for.

Which tenant boundary to choose and what each choice costs you

These five decisions set isolation, how many tenants fit, and what a reviewer can inspect. They depend on each other: the tenant boundary determines how many roles you need, and the network boundary determines who can reach the proxy where authentication is enforced.

Tenant boundary level

Milvus documents four levels: database, collection, partition and partition key. Each level trades isolation for tenant count. A database or collection gives each tenant its own schema and a separate access scope, while partitions and partition keys share one collection's schema and indexes. Pick the level before loading data, and confirm in the multi-tenancy docs how a later change of level would be handled.

Multi-tenancy docs

Expected tenant count

The default limits set the ceiling for each level. Milvus allows the 64 database default to be changed with maxDatabaseNum in milvus.yaml, and it holds up to 65,536 collections per cluster by default, adjustable with maxCollectionNum. A single collection supports up to 1,024 manually created partitions, while partition-key tenancy routes each tenant into 16 physical partitions and is described as scaling to millions of tenants. Write down your expected count and growth path before picking a level, and confirm these figures against your Milvus version.

Multi-tenancy limits

Identity to tenant mapping

Decide who assigns a user to a tenant and where that assignment is recorded. Open-source Milvus keeps user and grant records itself, so the link from your identity provider to a Milvus user is a process you build and run. Enabling authentication creates a root user with a default password, so change it before any tenant user exists. Reviewers usually ask for a sample of assignments and the revocation record for a departed user.

Authentication docs

Role model for tenants

Choose between one role per tenant and shared roles scoped by database or collection. Per-tenant roles keep each grant easy to read and revoke, but the role count grows with the tenant count. Shared roles scoped to a database or collection keep the role list short, but one mistaken scope can reach more tenants. Test either choice with a cross-tenant read test from a tenant user and keep the result as evidence.

RBAC docs

Network boundary and TLS

Decide who can reach the Milvus proxy and whether TLS is enforced there. Milvus documents one-way and two-way TLS on the proxy, set with tlsMode in milvus.yaml and certificate paths for the server key, server certificate and CA. Two-way TLS adds client certificates, which changes how every tenant application is issued and rotates its credentials. Record which subnets, load balancers and service accounts can reach the proxy, since reviewers ask for that list.

TLS docs

Choosing a tenancy level by tenant count and isolation need

The path starts at expected tenant count. A small number of tenants that each need a separate database go to the database level, which Milvus allows up to 64 of by default through maxDatabaseNum. Tenants that each need their own collection go to the collection level, where the cluster-wide maxCollectionNum default of 65,536 is shared with every other collection. A bounded set of tenant groups inside one collection uses manual partitions, up to 1,024 per collection. Very large tenant counts that share one collection use the partition key level. Before you commit, confirm these limits for your Milvus version in your own milvus.yaml, and check that your access model can be scoped at the database or collection level.

Decision path from expected tenant count to a Milvus tenancy level.

How the tenancy answer changes by tenant count and data sensitivity

Level: database. Choose this level when you have a small number of large tenants that each need a clear boundary and their own access scope. Milvus allows 64 databases by default, which sets the tenant ceiling at this level unless you raise maxDatabaseNum in milvus.yaml. The multi-tenancy page describes the four levels in detail. The main risk is that all databases share one cluster, so heavy load from one tenant can affect the others. The first decision is whether your expected tenant count stays under the default limit.

  • Tenant ceiling. The default of 64 databases caps tenant count at this level. Confirm your plan against that number before you change the setting.
  • Access scope. Give each tenant's applications and operators roles that cover only their own database, so a credential for one tenant cannot read another database.
  • Shared resources. All databases run on the same cluster. Ask the vendor how resource limits apply per database, and test a tenant under peak load.
  • Collection count. Large tenants often hold many collections, and the cluster-wide default of 65,536 collections (maxCollectionNum) applies to everyone. Track the count per database.

Before the design is approved, confirm with the vendor how backup and restore are scoped per database, since a restore may touch more than one tenant.

Where Milvus multi-tenancy leaves gaps you must cover

Milvus leaves several tenancy decisions to your team. The cards below cover what the platform does not connect or cap for you, and the usual way teams close each gap in infrastructure they control. Treat each one as a design check before the first tenant goes live.

Identity groups stay outside Milvus

Milvus separates tenants by database, collection, partition or partition key, but it does not map identity groups to those tenants. Your application or an identity layer must decide which group maps to which database or collection, create those objects and issue matching credentials. Check the provisioning path in writing: who creates a tenant, how access is removed when someone leaves a group, and where that mapping is recorded for audit.

Default limits cap tenant count

Milvus allows 64 databases by default, adjustable with maxDatabaseNum in milvus.yaml, and up to 65,536 collections through maxCollectionNum. A single collection supports up to 1,024 manually created partitions. Count the tenants you expect at launch and at peak, then choose the level and set these keys before the first tenant is onboarded. Confirm in the release notes how a change takes effect on a running cluster, and test the new value in a staging copy first.

Multi-tenancy docs

Shared partitions need query tests

Partition-key tenancy routes tenants into 16 physical partitions, so many tenants share the same physical partitions. Logical separation depends on the key filter in every query, so a missing or malformed filter can return another tenant's vectors. Build a test set with at least two tenants that share physical partitions, then run search, query and hybrid searches from each tenant's credentials and confirm that no foreign IDs come back. Repeat the test after schema changes and each upgrade.

Quotas and scoped access need confirmation

Milvus RBAC defines resources at instance, database and collection level, so access can be scoped per database or collection. Confirm with Milvus or Zilliz whether per-tenant quotas and partition-level access scoping exist in your release before you promise either to a tenant. Until then, enforce tenant limits such as request rate caps and query size limits at your API gateway or application layer, and bind each tenant's service credentials to its own database or collection.

RBAC docs

Tenant-level audit records need confirmation

Auditors and security reviewers often ask which tenant ran each insert, search or delete. Confirm before you rely on it whether the open-source edition writes tenant-level audit records. Until you verify that, log the tenant ID, user, operation, collection and timestamp at your gateway or application layer, and ship those entries to your central log store with a retention period set by your policy. Before onboarding, confirm that a sample request from each tenant appears in those logs.

How to put Milvus multi-tenancy into production in order

This sequence takes Milvus multi-tenancy from design to a reviewed production setup. Each step depends on the one before it: the tenant model sets the level, the limits and roles follow from it, and tests prove isolation before tenants go live. The output is a documented model and a set of test results that your security and compliance reviewers can check.

  1. Write the tenant model and map levels

    Your team lists every tenant and assigns each one to a level: database, collection, partition or partition key, as described in the Milvus multi-tenancy documentation. Compare the planned count with the default limits of 64 databases and 65,536 collections per cluster, and note which tenants would need the partition-key level instead. Record the isolation each level gives and the tenant count it supports in one table. Verify before moving on: every tenant has one assigned level, and no level is planned beyond its default limit unless step two applies. The product owner and security lead sign off on the table.

  2. Size and confirm any limit changes

    Change maxDatabaseNum or maxCollectionNum in milvus.yaml only if sizing shows the default limits of 64 databases or 65,536 collections will be exceeded. Size the metadata, the collections each node must hold and the memory headroom in your own environment, then record the new value and the reason for it. Test the change on a non-production cluster and confirm with the release documentation how the setting takes effect. Verify before moving on: the sizing is signed off, the new value is in version control, and the test cluster behaves as expected at the new limit.

  3. Enable authentication and change the root password

    Turn on authorizationEnabled before any tenant data is loaded. Set it in milvus.yaml for Docker Compose, in values.yaml for Helm, or in the Milvus custom resource for the Operator, depending on how you deployed. Then change the root password, which the authentication guide gives as Milvus by default, and store the new credential in your secrets manager. Verify before moving on: a client without credentials is refused, and the default root password no longer works.

  4. Create roles scoped to each tenant

    Create one role per tenant and grant it privileges only on that tenant's database or collection, using the resource levels in the Milvus role-based access control documentation. Give each application or user account a single tenant role, and avoid granting instance-level privileges to tenant accounts. The security engineer who owns identity reviews the grants and the team keeps the grant list in version control. Verify before moving on: each test account can reach its own database or collection and nothing else, and no tenant account holds an instance-level privilege.

  5. Test cross-tenant denial and partition-key routing

    Run denial tests with a test account for each tenant, attempting reads, writes and searches against other tenants' databases and collections. For tenants on the partition-key level, query with each tenant's key and confirm that results contain only that tenant's rows. Repeat these checks at the expected tenant count, because routing and latency can change as tenants are added. Verify before moving on: every cross-tenant attempt is refused, per-tenant results match the expected rows, and the team accepts the measured latency at that count.

  6. Document the model and hand off evidence

    Write one document that holds the tenant-to-level map, the limit values, the role grants, the authentication settings and the test results, each with its version and date. Store it with the deployment configuration and give it to the security and compliance teams, who decide what their own review needs. DeployOpen can prepare this evidence, but independent auditors and certification bodies issue audit reports and certifications. Verify before moving on: a team member who did not build the setup can rerun the denial tests from the document alone.

What a security reviewer asks to see for tenant isolation

This table lists the evidence a security reviewer asks for to check Milvus tenant isolation, and where each item comes from. Read each row as a question: the config file shows what was deployed, the role export shows who can reach which database or collection, and the test log shows whether a cross-tenant attempt failed. The main takeaway is that a config file alone does not prove isolation, so back each row with a dated record or test result the team can produce on request.

EvidenceWhat it showsWhere it comes from
Tenant modelWritten decision naming the chosen level (database, collection, partition or partition key) and whyA document the team writes
Authentication switchauthorizationEnabled set to true in the deployed milvus.yaml, values.yaml or Milvus custom resourceConfig file exported from the running deployment
Default root passwordLogin as root with the default password fails, and the change is dated and attributed to an operatorTest log from a login attempt plus a change record the team writes
RBAC grantsRole export listing each user's privileges per database and per collection, with no unexplained instance-level grantsRole export pulled from the running cluster
Database and collection limitsmaxDatabaseNum (default 64) and maxCollectionNum (default 65,536) values in milvus.yaml, sized to the planned tenant countConfig file, plus a sizing note the team writes
Proxy TLStlsMode set in milvus.yaml with server key, server certificate and CA paths, one-way or two-wayConfig file plus a TLS handshake test log from a client
Cross-tenant access testDated results showing one tenant's account was denied access to another tenant's database or collectionTest log naming the accounts used, kept by the test team

Questions buyers ask about Milvus multi-tenancy cost and effort

Does tenancy in Milvus require a paid Zilliz Cloud plan?

No paid Zilliz Cloud plan is needed to use the four multi-tenancy levels in open-source Milvus. Database, collection, partition and partition-key tenancy are configured in the cluster you run, and the project is licensed under Apache 2.0. Zilliz Cloud is a separate managed service with Free, Standard, Enterprise, Business Critical and BYOC options. Confirm which tenancy features differ by plan on the Zilliz Cloud pricing page before you choose a path. Self-hosted costs are the infrastructure you run, the staff time to operate it, and any outside help for design and testing. Ask each provider to show those items separately in the quote.

What makes the effort for tenancy grow or shrink?

Effort grows with four drivers: tenant count, isolation strength, identity mapping, and sizing and testing. Tenant count sets the level you can use, since database-level tenancy is bounded by the default limit of 64 databases, while partition-key tenancy is described as scaling to millions of tenants. Isolation strength decides how much separation you build. A database or collection per tenant means more objects to create, monitor, back up and grant access to. Identity mapping links each tenant to groups in your identity provider and turns those groups into role grants. Sizing and testing cover memory, storage and query behavior at the tenant count you plan for. Ask a provider to price each driver as its own line in the scope.

What does our team need to provide before tenancy work starts?

Before work starts, the client provides four inputs. Each one drives a design decision, so gaps delay the written scope.

  • Identity groups: the groups in your identity provider that should map to tenant roles or access scopes.
  • Tenant list: each tenant's name, data owner, expected volume and the isolation level it needs.
  • Sizing data: expected vector counts, embedding dimensions, growth, query patterns, and the memory and storage available to the cluster.
  • Infrastructure access: a test environment, the deployment details for your Milvus cluster, and a secrets process for service accounts.

Confirm early with your security team how service credentials will be stored and rotated.

Can a small team set up tenancy without outside help?

Yes, a small team can set up Milvus tenancy alone if it accepts the default limits and has at least one person who can operate Milvus. The documented RBAC model scopes access at instance, database and collection level, which covers simple layouts. Before go-live, test the design. Create one tenant of each planned type, confirm that a tenant's user cannot read another tenant's data, check that role grants match the tenant list, run a load test at the size you expect, and rehearse backup and restore. Bring in outside help when you need custom limits, identity mapping across many groups, or a formal sizing study, and define those tests in the written scope first.

What happens when tenant count passes 64 databases or the collection limit?

Raise the limit only after sizing, then confirm the effect on the cluster before you onboard more tenants. Database-level tenancy defaults to 64 databases through maxDatabaseNum in milvus.yaml, and the cluster defaults to 65,536 collections through maxCollectionNum. Treat the change as a controlled configuration change. Size memory and metadata for the new count, set the value, apply it the way your deployment requires, then check that the new count is visible and that existing tenants still reach only their own data. Record the change and rehearse a restore. If the tenant count is far above these defaults, compare database-level tenancy with partition-key tenancy before raising limits. The Milvus multi-tenancy documentation describes each level.

How does DeployOpen price a tenancy project?

DeployOpen works from a fixed scope agreed in writing before work starts, and the quote follows that written scope. DeployOpen does not publish a price list, so the figure depends on the tenancy level, tenant count, identity integration, sizing and testing agreed for your environment. To compare quotes, ask each provider to list the deliverables, the environment they will work in, what the client provides, and which tests will be run and retested. Separate the one-time build from recurring items. DeployOpen offers ongoing support, upgrades and continuous testing as retainers. Also ask what changes to the scope cost if the tenant count grows after signing.

How DeployOpen deploys and tests Milvus tenancy in your infrastructure

DeployOpen plans and builds Milvus tenancy inside your own infrastructure, choosing the level of isolation that fits your tenant count before any cluster is configured. We deliver the configuration, access model, tests and documentation as written deliverables your security and compliance teams can review. Engagements are fixed-scope, with the scope agreed in writing before work starts.

How we scope

  • Confirm the tenancy level for each workload (database, collection, partition or partition key) against tenant count.
  • Check the default limits, including 64 databases and 65,536 collections, and the milvus.yaml settings that change them.
  • Map which roles need instance, database or collection access, since Milvus RBAC scopes permissions at those three resource levels.

How we build

  • Deploy Standalone on Docker or Distributed on Kubernetes in your environment, sized to Milvus prerequisites.
  • Enable authorizationEnabled, replace the default root password, and configure user, role and privilege assignments for each tenant.
  • Configure one-way or two-way TLS on the proxy using tlsMode and certificate paths in milvus.yaml.

How we hand over

  • Test that each tenant can reach only its own databases, collections or partitions, and retest after configuration changes.
  • Document the tenancy model, limits, role matrix and TLS settings so your security and compliance teams can review them.
  • Walk your platform team through the configuration and the steps to onboard a new tenant.

How we support

  • Offer ongoing support, upgrades and continuous testing through a retainer, once the handover is complete.
  • Revisit tenant limits as tenant count grows, since milvus.yaml settings can raise the default database and collection caps.
  • Confirm with Milvus release notes which version your deployment runs before planning an upgrade.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.