Tease us with more "machine" info?

@kurt mentioned that the Machines feature is “not yet released” but it sounds intriguing. I wonder if you could share just a touch more about how we would be able to use machines. As it is I am unable to complete an end to end scenario but really don’t know what to expect so am sure it’s on me.

Here’s what I’ve done so far.

  1. git clone https://github.com/fly-apps/hellonode-builtin
  2. fly launch take the defaults
  3. fly create machinetest
  4. fly machine run -a machinetest registry.fly.io/<app image name from step 2>

That seems to have gotten a machine up and running

app[8d413be3] iad [info] HelloNode app listening on port 3000!

but I am not able to send requests to it. All of the following curl commands result in Could not resolve host: <host>.fly.dev or Could not connect to server.

  • curl http://machinetest.fly.dev:3000 – app name
  • curl http://purple-mountain-2208.fly.dev:3000 – machine name
  • curl -g -6 http://[fdaa:0:543a:a7b:775b:8d41:3be3:2]:3000/ – IP address of machine

Can you point to an end-to-end example of using a machine (where end to end starts with user source code and ends with a response to a user request from that code running on a machine.

2 Likes