Closed gberche-orange closed 7 years ago
Refinining the alternatives for this issue as well as #187 :
[ ] provide a pluggeable way to fetch app recent activity with an alternative to doppler recentlogs endpoint
[ ] firehose: precise endpoint/data used to measure app activity:
/apps/APP_ID/stream
endpoint)
/firehose/SUBSCRIPTION_ID
)
firehose.user
oauth scope which is only available to paas operators. This therefore does not address the issue for running autosleep public paas instances (as bluemix or PWS) as a private service broker.ApplicationActivity getApplicationActivity(String appUid) throws CloudFoundryException;
be provided by the firehose client https://github.com/cloudfoundry-community/snotel
[ ] derived, aggregated time-series data from the firehose endpoint (such as prometheus time series db)
Progress is being done by the cf-java-client team to have a reliable "recentLog" support, remaining dependent issue is tracked on https://github.com/cloudfoundry/cf-java-client/issues/672
We observe the following stack trace:
As a result, applications are never put to sleep.
This seems to come from the fact that autosleep uses the 2.0.0.M1 version of cf-java-client (see #252 ) which was using a deprecated version of the logging endpoint
logging_endpoint
and not the newdoppler_logging_endpoint
Starting with v244,
See related https://www.pivotaltracker.com/story/show/129384577 remove legacy endpoint from cf-release
The current cf-java-client does seem to use the new doppler endpoint, see https://github.com/cloudfoundry/cf-java-client/blob/v2.0.2.RELEASE/cloudfoundry-client-reactor/src/main/java/org/cloudfoundry/reactor/doppler/_ReactorDopplerClient.java#L80
However, it seems that upgrade to latest client #252 is still blocked on https://github.com/cloudfoundry/cf-java-client/issues/551
Alternatives:
firehose.user
scope and hence prevent usage of autosleep on a public CF instance such as bluemix or PWS)