cloudfoundry-community / autosleep

Auto sleep service for CloudFoundry
Apache License 2.0
39 stars 21 forks source link

Keep proxy table clean #295

Closed mindprogenitor closed 6 years ago

mindprogenitor commented 6 years ago

At this moment, when an app is awaken, only the called route (the one triggering the startup) will be deleted from the proxy map table. This will cause clutter in the long run, as the route entries will be kept in the table for as long as they are not used to wake up the app again.

This change will remove all mapped routes for an app when it is awaken instead of just the used route.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 95.133% when pulling 01b7f8975e81e6eebd1ab5af2cf1de64cd3513b6 on mindprogenitor:keep-proxy-table-clean into 1dff43d8b36cb223198ea7fe285473c34ec2b523 on cloudfoundry-community:develop.

gberche-orange commented 6 years ago

Thanks @mindprogenitor for your contribution!

I need to rework my acceptance test environment before I can run acceptance tests in order to prepare a new release. Help for running acceptance tests is welcome if the lack of a shared release becomes an issue.

mindprogenitor commented 6 years ago

Thanks gberche. We are currently running a version based on the fork, just wanted to provide also what we have, that way we don't diverge from the main branch.