short lived tasks in cloud foundry #cfdtokyo

Post on 16-Apr-2017

431 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

continual scalable available

terminating singleton consistent

Long-Running Process (LRP) Task

continual scalable available

terminating singleton consistent

App Process

Long-Running Process (LRP) Task

continual scalable available

terminating singleton consistent

App Process Staging Task

Long-Running Process (LRP) Task

continual scalable available

terminating singleton consistent

App Process Staging Task App Task

Long-Running Process (LRP) Task

instance_index=JSON.parse(ENV["VCAP_APPLICATION"])["instance_index"]

rescue nilexit(0) unless instance_index == 0

😨

cf install-plugin https://github.com/cloudfoundry/v3-cli-plugin/releases/download/0.6.7/v3-cli-plugin.osx

cf v3-push hello -b ruby_buildpackcf v3-run-task hello say "./hello.rb"

cf v3-run-task rails-sample migration 'bundle exec rake db:migrate'

cf v3-run-task flyway-migration migrate ".java-buildpack/open_jdk_jre/bin/java org.springframework.boot.loader.JarLauncher"

top related