Multiple services with @http?

Hi
We have two services that require using the @http decorator.
The problem is that the first service that launches "catches" the port, so
the second service fails with "address already in use" exception.

How can this be solved?

Thanks,
Tsachi

You can change the port that the two containers bind to. See

···

On Sun, 26 Mar 2017 at 12:55, <tsachi.shuval@gmail.com> wrote:

Hi
We have two services that require using the @http decorator.
The problem is that the first service that launches "catches" the port, so
the second service fails with "address already in use" exception.

How can this be solved?

Thanks,
Tsachi

--
You received this message because you are subscribed to the Google Groups
"nameko-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to nameko-dev+unsubscribe@googlegroups.com.
To post to this group, send email to nameko-dev@googlegroups.com.
To view this discussion on the web, visit
https://groups.google.com/d/msgid/nameko-dev/eef45bfc-e48f-45bd-a75a-d10a302ba7de%40googlegroups.com
<https://groups.google.com/d/msgid/nameko-dev/eef45bfc-e48f-45bd-a75a-d10a302ba7de%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

Thanks, but the two services are run from the same machine (actually, it's
a number of machines behind an ELB) and require to listen on the same port.
Can this be done?

···

On Sunday, March 26, 2017 at 3:11:23 PM UTC+3, Matt Yule-Bennett wrote:

You can change the port that the two containers bind to. See
https://github.com/nameko/nameko/issues/364

On Sun, 26 Mar 2017 at 12:55, <tsachi...@gmail.com <javascript:>> wrote:

Hi
We have two services that require using the @http decorator.
The problem is that the first service that launches "catches" the port,
so the second service fails with "address already in use" exception.

How can this be solved?

Thanks,
Tsachi

--
You received this message because you are subscribed to the Google Groups
"nameko-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to nameko-dev+...@googlegroups.com <javascript:>.
To post to this group, send email to namek...@googlegroups.com
<javascript:>.
To view this discussion on the web, visit
https://groups.google.com/d/msgid/nameko-dev/eef45bfc-e48f-45bd-a75a-d10a302ba7de%40googlegroups.com
<https://groups.google.com/d/msgid/nameko-dev/eef45bfc-e48f-45bd-a75a-d10a302ba7de%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

It's not possible to do this, in the same way that it's not possible to
have two Flask apps share the same port.

The normal way of achieving this would be to put them behind a server like
nginx.