Skip to content

Add background job for retrieving database limits #331

Closed as not planned
Closed as not planned
@scsmithr

Description

@scsmithr

Summary

We need to be able to limit storage usage for databases. A background job should be used to fetch the limits from Cloud on an interval and atomically update some Limits struct.

This issue does not cover actually preventing the database from going over the limit.

Blocked on #326 and https://github.com/GlareDB/cloud/issues/300

Specifications

  • Add method to Cloud Client for retrieving limit.
  • Add background job pulling limits from Cloud.
  • Update some Limits struct atomically with the limit.

Rationale

Limit database storage usage.

Impact

Need endpoint on cloud for retrieving limits.

Tasks

See specs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions