Skip to content

Instantly share code, notes, and snippets.

@mopemope
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mopemope/90a4525a3c6c5730eaaa to your computer and use it in GitHub Desktop.
Save mopemope/90a4525a3c6c5730eaaa to your computer and use it in GitHub Desktop.
fleet submit log
core@coreos1 ~ $ etcdctl ls --recursive /_coreos.com/fleet/job
core@coreos1 ~ $ fleetctl list-units
UNIT LOAD ACTIVE SUB DESC MACHINE
core@coreos1 ~ $ fleetctl list-units
UNIT LOAD ACTIVE SUB DESC MACHINE
hello.service loaded active running Hello World 0b0d4b79.../192.168.2.50
core@coreos1 ~ $
core@coreos2 ~ $ etcdctl ls --recursive /_coreos.com/fleet/job
core@coreos2 ~ $ fleetctl list-units
UNIT LOAD ACTIVE SUB DESC MACHINE
core@coreos2 ~ $ fleetctl list-units
UNIT LOAD ACTIVE SUB DESC MACHINE
hello.service loaded active running Hello World 0b0d4b79.../192.168.2.50
core@coreos2 ~ $
May 14 01:18:20 coreos1 fleet[3823]: I0514 01:18:20.002129 03823 event.go:36] EventJobOffered(hello.service): passed all criteria, submitting JobBid
May 14 01:18:20 coreos1 fleet[3823]: I0514 01:18:20.002162 03823 agent.go:265] Submitting JobBid for Job(hello.service)
May 14 01:18:20 coreos1 fleet[3823]: I0514 01:18:20.003814 03823 engine.go:85] Published JobOffer(hello.service)
May 14 01:18:20 coreos1 fleet[3823]: I0514 01:18:20.614789 03823 engine.go:115] Scheduled Job(hello.service) to Machine(0b0d4b79-26bb-48ca-a7d1-cc7433bbba59)
May 14 01:18:20 coreos1 fleet[3823]: I0514 01:18:20.616693 03823 agent.go:197] Starting Job(hello.service)
May 14 01:18:20 coreos1 fleet[3823]: I0514 01:18:20.617191 03823 manager.go:178] Writing systemd unit file hello.service
May 14 01:18:20 coreos1 fleet[3823]: I0514 01:18:20.633765 03823 manager.go:129] Started systemd unit hello.service(done)
ubuntu-server λ ./fleetctl --endpoint 'http://192.168.2.50:4001' list-machines
MACHINE IP METADATA
0b0d4b79... 192.168.2.50 -
52522d84... 192.168.2.51 -
ubuntu-server λ ./fleetctl --endpoint 'http://192.168.2.50:4001' submit hello.service
ubuntu-server λ ./fleetctl --endpoint 'http://192.168.2.50:4001' list-units
UNIT STATE LOAD ACTIVE SUB DESC MACHINE
hello.service loaded loaded active running Hello World 0b0d4b79.../192.168.2.50
ubuntu-server λ
@YungSang
Copy link

これ 51 にはスケジューリングされないんですか?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment