Download - Short Lived Tasks in Cloud Foundry #cfdtokyo
![Page 1: Short Lived Tasks in Cloud Foundry #cfdtokyo](https://reader031.vdocuments.net/reader031/viewer/2022022414/586f86061a28ab54768b53b1/html5/thumbnails/1.jpg)
![Page 3: Short Lived Tasks in Cloud Foundry #cfdtokyo](https://reader031.vdocuments.net/reader031/viewer/2022022414/586f86061a28ab54768b53b1/html5/thumbnails/3.jpg)
continual scalable available
terminating singleton consistent
Long-Running Process (LRP) Task
![Page 4: Short Lived Tasks in Cloud Foundry #cfdtokyo](https://reader031.vdocuments.net/reader031/viewer/2022022414/586f86061a28ab54768b53b1/html5/thumbnails/4.jpg)
continual scalable available
terminating singleton consistent
App Process
Long-Running Process (LRP) Task
![Page 5: Short Lived Tasks in Cloud Foundry #cfdtokyo](https://reader031.vdocuments.net/reader031/viewer/2022022414/586f86061a28ab54768b53b1/html5/thumbnails/5.jpg)
continual scalable available
terminating singleton consistent
App Process Staging Task
Long-Running Process (LRP) Task
![Page 6: Short Lived Tasks in Cloud Foundry #cfdtokyo](https://reader031.vdocuments.net/reader031/viewer/2022022414/586f86061a28ab54768b53b1/html5/thumbnails/6.jpg)
continual scalable available
terminating singleton consistent
App Process Staging Task App Task
Long-Running Process (LRP) Task
![Page 7: Short Lived Tasks in Cloud Foundry #cfdtokyo](https://reader031.vdocuments.net/reader031/viewer/2022022414/586f86061a28ab54768b53b1/html5/thumbnails/7.jpg)
![Page 8: Short Lived Tasks in Cloud Foundry #cfdtokyo](https://reader031.vdocuments.net/reader031/viewer/2022022414/586f86061a28ab54768b53b1/html5/thumbnails/8.jpg)
![Page 9: Short Lived Tasks in Cloud Foundry #cfdtokyo](https://reader031.vdocuments.net/reader031/viewer/2022022414/586f86061a28ab54768b53b1/html5/thumbnails/9.jpg)
![Page 10: Short Lived Tasks in Cloud Foundry #cfdtokyo](https://reader031.vdocuments.net/reader031/viewer/2022022414/586f86061a28ab54768b53b1/html5/thumbnails/10.jpg)
instance_index=JSON.parse(ENV["VCAP_APPLICATION"])["instance_index"]
rescue nilexit(0) unless instance_index == 0
馃槰
![Page 11: Short Lived Tasks in Cloud Foundry #cfdtokyo](https://reader031.vdocuments.net/reader031/viewer/2022022414/586f86061a28ab54768b53b1/html5/thumbnails/11.jpg)
![Page 12: Short Lived Tasks in Cloud Foundry #cfdtokyo](https://reader031.vdocuments.net/reader031/viewer/2022022414/586f86061a28ab54768b53b1/html5/thumbnails/12.jpg)
cf install-plugin https://github.com/cloudfoundry/v3-cli-plugin/releases/download/0.6.7/v3-cli-plugin.osx
![Page 13: Short Lived Tasks in Cloud Foundry #cfdtokyo](https://reader031.vdocuments.net/reader031/viewer/2022022414/586f86061a28ab54768b53b1/html5/thumbnails/13.jpg)
cf v3-push hello -b ruby_buildpackcf v3-run-task hello say "./hello.rb"
![Page 14: Short Lived Tasks in Cloud Foundry #cfdtokyo](https://reader031.vdocuments.net/reader031/viewer/2022022414/586f86061a28ab54768b53b1/html5/thumbnails/14.jpg)
cf v3-run-task rails-sample migration 'bundle exec rake db:migrate'
![Page 15: Short Lived Tasks in Cloud Foundry #cfdtokyo](https://reader031.vdocuments.net/reader031/viewer/2022022414/586f86061a28ab54768b53b1/html5/thumbnails/15.jpg)
cf v3-run-task flyway-migration migrate ".java-buildpack/open_jdk_jre/bin/java org.springframework.boot.loader.JarLauncher"
![Page 16: Short Lived Tasks in Cloud Foundry #cfdtokyo](https://reader031.vdocuments.net/reader031/viewer/2022022414/586f86061a28ab54768b53b1/html5/thumbnails/16.jpg)
![Page 17: Short Lived Tasks in Cloud Foundry #cfdtokyo](https://reader031.vdocuments.net/reader031/viewer/2022022414/586f86061a28ab54768b53b1/html5/thumbnails/17.jpg)
![Page 18: Short Lived Tasks in Cloud Foundry #cfdtokyo](https://reader031.vdocuments.net/reader031/viewer/2022022414/586f86061a28ab54768b53b1/html5/thumbnails/18.jpg)
![Page 19: Short Lived Tasks in Cloud Foundry #cfdtokyo](https://reader031.vdocuments.net/reader031/viewer/2022022414/586f86061a28ab54768b53b1/html5/thumbnails/19.jpg)