Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Short Lived Tasks in Cloud Foundry #cfdtokyo

943 views

Published on

Short Lived Tasks in Cloud Foundry

LT at Cloud Foundry Days in Tokyo. 2016-11-11

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Short Lived Tasks in Cloud Foundry #cfdtokyo

  1. 1. bit.ly/hajiboot2
  2. 2. continual scalable available terminating singleton consistent Long-Running Process (LRP) Task
  3. 3. continual scalable available terminating singleton consistent App Process Long-Running Process (LRP) Task
  4. 4. continual scalable available terminating singleton consistent App Process Staging Task Long-Running Process (LRP) Task
  5. 5. continual scalable available terminating singleton consistent App Process Staging Task App Task Long-Running Process (LRP) Task
  6. 6. instance_index=JSON.parse(ENV["VCAP_ APPLICATION"])["instance_index"] rescue nil exit(0) unless instance_index == 0 😨
  7. 7. cf install-plugin https://github.com/ cloudfoundry/v3-cli-plugin/releases/ download/0.6.7/v3-cli-plugin.osx
  8. 8. cf v3-push hello -b ruby_buildpack cf v3-run-task hello say "./hello.rb"
  9. 9. cf v3-run-task rails-sample migration 'bundle exec rake db:migrate'
  10. 10. cf v3-run-task flyway-migration migrate ".java-buildpack/open_jdk_jre/bin/java org.springframework.boot.loader.JarLauncher"

×