Skip to content

Memory rise on hasura metadata apply #10778

@g-jgreen

Description

@g-jgreen

Version Information

Server Version:
2.48.0
CLI Version (for CLI related issue):
version=2.48.0

Environment

EE

What is the current behaviour?

When applying metadata with permissions and allow-rules, we see a significant rise in memory for the Hasura instance.

The largest files/directories that are imported are:

  • Our query_collections file, around 2.5MB of size:
2.5M Sep 24 17:36 query_collections.yaml
  • Our tables consist of 138 yaml files with a total of 1368K (1.37MB)
➜  tables ls -la
total 1368

Yet importing this enlarges the memory footprint at times to 6.5GB coming from a baseline of around 2GB.
We can ofcourse foresee enough memory, though it seems rather unusual to require this much memory during this action.

Similar to this report:
#10601 (comment)

What is the expected behaviour?

An fairly normal memory footprint considering the size of the metadata files.

How to reproduce the issue?

  1. Have tables & permissions combined with an allow list of queries
  2. run metadata apply
  3. Memory rise

Screenshots or Screencast

Base footprint:
Image

Footprint during import:
Image

Please provide any traces or logs that could help here.

Standard logging, nothing unusual here.

Any possible solutions/workarounds you're aware of?

None

Keywords

Hasura
CLI
Memory

Metadata

Metadata

Assignees

No one assigned

    Labels

    k/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions