Skip to content

Use cache for stuff stored in instance storage #352

@FRosner

Description

@FRosner

Problem

Right now we store nomad and consul information about instances in a hash map inside the InstanceService. This is a potential memory leak.

I don't think it's a severe risk as with the current code base we actually always overwrite the info coming from Nomad / Consul. So as long as nobody changes the code we should be fine.

Solution

Use the play cache API with an appropriate TTL (e.g. double the nomad refresh time).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions