Skip to content

Add Schema limits #4078

@tillrohrmann

Description

@tillrohrmann

Currently, the Schema object can grow unboundedly because we don't enforce limits. If the Schema grows too big, then our grpc based metadata communication fails as it by default has a message size limit of 4MB. This can happen if users have many historic deployments registered, for example.

A user reported this problem: https://discord.com/channels/1128210118216007792/1446088397398610022

To protect against this problem, we should add some limits:

  • Limit the overall size of the Schema object. It should be below the maximum message size that our grpc clients are configured with.

Once we hit the limit, we should print a comprehensive error message telling the user to remove unused deployments to reduce the overall size.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions