cloudfoundry-community / autosleep

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

Autowakeup should start all applications mapped to a managed route #257

Open gberche-orange opened 7 years ago

gberche-orange commented 7 years ago
$cf a 
name              requested state   instances   memory   disk   urls
app-blue           stopped           2/2         64M      1G     app.cfapp.io
app-green          stopped           2/2         1G       1G     app.cfapp.io

Currently, a single app is started for each received HTTP request https://github.com/orange-cloudfoundry/autosleep/blob/e3821106f791b82acdeef535f4d87434dc5e34ea/spring-apps/autowakeup-proxy/src/main/java/org/cloudfoundry/autosleep/ui/proxy/WildcardProxy.java#L127-L143

Potentially, in this case returning invalid 500 error with message "We've already forwarded this traffic, this should not happen"

gberche-orange commented 7 years ago

started in https://github.com/orange-cloudfoundry/autosleep/commits/wakeup-starts-all still need more refactoring to autowakeup proxy