Skip to content

Instantly share code, notes, and snippets.

@aanand
Created June 24, 2014 18:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aanand/fb1fb3ea406d8e37accf to your computer and use it in GitHub Desktop.
Save aanand/fb1fb3ea406d8e37accf to your computer and use it in GitHub Desktop.
Unexplored libswarm topics

Comment on this Gist with any present or potential concerns regarding the design and use of libswarm.

@aanand
Copy link
Author

aanand commented Jun 24, 2014

How to pass configuration to a call like Attach. When attaching to a Docker container, various options can be passed: stdin, stdout, stderr, logs, stream. How would this be done?

  • CLI-style args on the message (e.g. ("--stdout", "1"))
  • JSON blob as the second arg (e.g. {"stdout": true})

@aanand
Copy link
Author

aanand commented Jun 24, 2014

How to expose actions that are specific to a service. For example, Docker containers can be paused/unpaused.

  • call Spawn on a container where the first argument is "pause"
  • call Set with a payload containing something like "paused: true"
  • add two new verbs to libswarm

@aanand
Copy link
Author

aanand commented Jun 24, 2014

Enabling/initiating direct communication between two remote libswarm services. For example, linking two Docker containers, possibly across hosts.

To me, this would seem to call for a global addressability - URL-style - of libswarm services (within a network). Perhaps I send a message to one container telling it to "link" to swarm://other.service.hostname/path/to/container.

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