Tensai75 / nzbrefresh

Cmd line tool to re-upload articles that are missing from providers
MIT License
15 stars 4 forks source link

Merge connections from providers into a single connection pool for the same host #7

Open MythodeaLoL opened 1 month ago

MythodeaLoL commented 1 month ago

Currently, we cannot increase the processing power. One way to fix this would be to use multiple hosts from the same provider as if they were 1, that is, add the connections and have more processing.

For example, I can only use 50 Thunder connections, but I would like to use 150. If I configure 3 providers, nzbrefresh would add all the connections and treat the 3 identical hosts news.thundernews.com as just 1 provider.

Currently, if I add 3 identical hosts, it redundantly checks the same article on all 3, which makes no sense. @Tensai75

[
  {
    "Name": "Thunder",
    "Host": "news.thundernews.com",
    "Instances": [
      {
        "Username": "user1",
        "Password": "pass1",
        "MaxConns": 50
      },
      {
        "Username": "user2",
        "Password": "pass2",
        "MaxConns": 50
      }
    ],
    "Port": 119,
    "SSL": false,
    "SkipSslCheck": true,
    "ConnWaitTime": 10,
    "IdleTimeout": 30,
    "HealthCheck": false,
    "MaxTooManyConnsErrors": 3,
    "MaxConnErrors": 3
  }
]