heroku/heroku-buildpack-java — pull request #10 by naamannewbold (2012-08-17 04:28:51+00:00)
Title: Vendor JDK into 10% of New Apps

@ryanbrainard please review

This pull request vendors the JDK into roughly 10% of new apps. We are only doing 10% to roll out slowly.

The 10% is derived from a random number generated between 0 and 100 and then compared to http://heroku-jvm-langpack-java.s3.amazonaws.com/flags/download-jdk-6-rate, which currently is set at 10. If the random number is lower than the threshold, the app is flagged for downloading the JDK.

We can change the download-jdk-6-rate to a higher or lower number. If we set the rate to -1 no apps will be flagged to vendor the JDK and will use the bootstrap JDK. If we set the rate to 101, all new apps will be flagged to use the JDK.