Exposed ports: large range

Bonjour, :wave:

This time with nomad I tried to install asterisk + freepbx docker (Docker Hub).

In docs:

Port Description
80 HTTP
443 HTTPS
4445 FOP
4569 IAX
5060 PJSIP
5160 SIP
8001 UCP
8003 UCP SSL
8008 UCP
8009 UCP SSL
18000-20000/udp RTP ports

I created a very long long hcl file with approximately 2000 ports exposed.

But now, when I run job, nomad hangs with unheatly status.
Failed due to progress deadline

Do you have advice to deploy large range?

Thanks :slight_smile:

Hi @fred-gb,

2000 ports exposed

Are these ports dynamically of statically allocated? If you could provide an example of your network block that would help.

nomad hangs with unheatly status

Could you provide additional details and information about what is exactly hanging or is it that Nomad takes a long time to create ~2000 ports on a host machine?

Failed due to progress deadline

You can try increasing the update.progress_deadline jobspec parameter to account for the larger than typical work that must be done to configure and prepare a client for ~2000 ports.

Thanks,
jrasell and the Nomad team

Hi,
Thanks for you answer.

I tried with “only” 100 ports and it works.

It’s statically allocated ports.

      "Networks": [
        {
          "Mode": "bridge",
          "Device": "",
          "CIDR": "",
          "IP": "",
          "Hostname": "",
          "MBits": 0,
          "DNS": null,
          "ReservedPorts": [
            {
              "Label": "freepbxfop",
              "Value": 4445,
              "To": 4445,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxjax",
              "Value": 4569,
              "To": 4569,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxpjsip",
              "Value": 5060,
              "To": 5060,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxsip",
              "Value": 5160,
              "To": 5160,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxucp",
              "Value": 8001,
              "To": 8001,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxucpssl",
              "Value": 8003,
              "To": 8003,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxucp2",
              "Value": 8008,
              "To": 8008,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxucp2ssl",
              "Value": 8009,
              "To": 8009,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxrtp0000",
              "Value": 18000,
              "To": 18000,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxrtp0001",
              "Value": 18001,
              "To": 18001,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxrtp0002",
              "Value": 18002,
              "To": 18002,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxrtp0003",
              "Value": 18003,
              "To": 18003,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxrtp0004",
              "Value": 18004,
              "To": 18004,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxrtp0005",
              "Value": 18005,
              "To": 18005,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxrtp0006",
              "Value": 18006,
              "To": 18006,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxrtp0007",
              "Value": 18007,
              "To": 18007,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxrtp0008",
              "Value": 18008,
              "To": 18008,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxrtp0009",
              "Value": 18009,
              "To": 18009,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxrtp0010",
              "Value": 18010,
              "To": 18010,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxrtp0011",
              "Value": 18011,
              "To": 18011,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxrtp0012",
              "Value": 18012,
              "To": 18012,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxrtp0013",
              "Value": 18013,
              "To": 18013,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxrtp0014",
              "Value": 18014,
              "To": 18014,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxrtp0015",
              "Value": 18015,
              "To": 18015,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxrtp0016",
              "Value": 18016,
              "To": 18016,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxrtp0017",
              "Value": 18017,
              "To": 18017,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxrtp0018",
              "Value": 18018,
              "To": 18018,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxrtp0019",
              "Value": 18019,
              "To": 18019,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxrtp0020",
              "Value": 18020,
              "To": 18020,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxrtp0021",
              "Value": 18021,
              "To": 18021,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxrtp0022",
              "Value": 18022,
              "To": 18022,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxrtp0023",
              "Value": 18023,
              "To": 18023,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxrtp0024",
              "Value": 18024,
              "To": 18024,
              "HostNetwork": "default"
            },
            {
              "Label": "freepbxrtp0025",
              "Value": 18025,
              "To": 18025,
              "HostNetwork": "default"
            },
[...]

I don’t for now more than 100 ports, maybe it’s only a VM ressources problems.

What is your advice?

Thanks!