Re: tcp-routing in Lattice
Jack Cai
Thanks Atul and Marco for your advice.
toggle quoted message
Show quoted text
Below is the command I used to push the docker image: * ltc create hello <docker-image> --ports 8888,8788 --http-routes hello:8888 --tcp-routes 8788:8788 --memory-mb=0 --timeout=10m --monitor-port=8888* After the push completed, it reported below: *...hello is now running.App is reachable at:192.168.11.11.xip.io:8788 <http://192.168.11.11.xip.io:8788>http://hello.192.168.11.11.xip.io <http://hello.192.168.11.11.xip.io>* I also tried to update the routes: * ltc update hello --http-routes hello:8888 --tcp-routes 8788:8788* If I do "ltc status hello", I see the below routes: *Instances 1/1Start Timeout 0DiskMB 0MemoryMB 0CPUWeight 100Ports 8788,8888Routes 192.168.11.11.xip.io:8788 <http://192.168.11.11.xip.io:8788> => 8788 hello.192.168.11.11.xip.io <http://hello.192.168.11.11.xip.io> => 8888* But when I visited http://192.168.11.11.xip.io:8788/, I got "Unable to connect", while I could visit http://hello.192.168.11.11.xip.io/ successfully. Below is the log I saw when doing "vagrant up" to bring up Lattice: *...==> default: stdin: is not a tty==> default: mkdir: created directory â/var/latticeâ==> default: mkdir: created directory â/var/lattice/setupâ==> default: Running provisioner: shell... default: Running: inline script==> default: stdin: is not a tty==> default: * Stopping web server lighttpd==> default: ...done.==> default: Installing cflinuxfs2 rootfs...==> default: done==> default: * Starting web server lighttpd==> default: ...done.==> default: Installing Lattice (v0.4.0) (Diego 0.1398.0) - Brain==> default: Finished Installing Lattice Brain (v0.4.0) (Diego 0.1398.0)!==> default: Installing Lattice (v0.4.0) (Diego 0.1398.0) - Lattice Cell==> default: Finished Installing Lattice Cell (v0.4.0) (Diego 0.1398.0)!==> default: bootstrap start/running==> default: Lattice is now installed and running.==> default: You may target it using: ltc target 192.168.11.11.xip.io <http://192.168.11.11.xip.io>* There is an error "stdin: is not a tty", and I don't see haproxy mentioned in the log. Maybe haproxy is not started at all? Jack On Wed, Sep 9, 2015 at 8:13 PM, Marco Nicosia <mnicosia(a)pivotal.io> wrote:
Hi Jack, |
|