cloudfoundry-community / autosleep

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

Autosleep service instance not able to bind more than 50 applications in a space #281

Open swativerma1 opened 7 years ago

swativerma1 commented 7 years ago

We observed that autosleep service instance is unable to bind more than 50 applications in a space. On debugging, we found the reason is method List<ApplicationIdentity> listAliveApplications(String spaceUuid, Pattern excludeNames) in class class CloudFoundryApi does not handle the complete paginated response of ListApplicationsRequest By default, first page is handled in response and it has 50 (default) entries.

Solution: To handle complete paginated response.

Similarly, the following methods need correction: listApplicationRoutes listRouteApplications

cc / @pradyutsarma

shanaking commented 6 years ago

@pradyutsarma has this issue ever been resolved?