openhab-addons: [network] (Docker) Still massively slowing down boon when extended default-adress-pools are used in /etc/docker/daemon.json
Expected Behavior
When openHAB boots, the pingdevices shall be initialized relatively quickly. The network-binding-things should be editable when clicking on them and not be loading forever. The network-binding should not slow down other things to be discovered/initialized
Current Behavior
Sorry for re-opening this, already referenced in:
- https://github.com/openhab/openhab-addons/issues/15437
- https://github.com/openhab/openhab-core/issues/3976
- https://community.openhab.org/t/openhab-4-0-1-and-network-pingdevice-on-docker-install-results-in-massive-threads/148658/3
As seen/documented in the linked discussions im pretty sure, that the combination
- using the network-binding
- configuring openHAB with
network_mode: host - using a extended docker-daemon default-address-pool causes the network binding to scan/ping a extremely high range of IP addresses which results in CPU-load and/or delays in boot and usage.
I even upgraded my server recently to basically a gaming PC hardware and even then i am experiencing
- network-devices need a extremely long time to initialize (like 10 minutes) after boot
- these network-things are not accessible via MainUI --> Only loading skeleton can be seen
- this seems to slow down other things like mqtt binding/things too
I deinstalled the network binding and everything is fine
Possible Solution
Not sure, because all of this was already discussed in the other topics but the result overall was something like “with the current version things should be better”
To repeat already discussed solutions:
- Possibility to limit/configure the relevant IP adress range in the network binding
- Using the “primary” address from mainUI settings
I have no advanced knowledge in all of these things but i feel like there could be something like a additional setting in the “advanced” section of the network-binding, extremely reducing the amount of scanned IPs to a normal range
My Hardware is way too overpowered for openHAB but this is significantly slowing down boot and interfering with the general openHAB stability
Steps to Reproduce (for Bugs)
- Use openHAB docker in network_mode: host
- Install network binding
- Extend default-address-pool
- Boot
Context
daemon.json
{
"default-address-pools": [
{
"base":"172.17.0.0/12",
"size":16
},
{
"base":"192.168.0.0/16",
"size":20
}
]
}
Your Environment
- Version used: openHAB 4.2.0.M3
- Environment name and version (e.g. Chrome 76, Java 8, Node.js 12.9, …): Firefox 126.0
- Operating System and version
$ cat /etc/os-release
NAME="Fedora Linux"
VERSION="40.20240416.3.1 (CoreOS)"
ID=fedora
VERSION_ID=40
VERSION_CODENAME=""
PLATFORM_ID="platform:f40"
PRETTY_NAME="Fedora CoreOS 40.20240416.3.1"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:40"
HOME_URL="https://getfedora.org/coreos/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora-coreos/"
SUPPORT_URL="https://github.com/coreos/fedora-coreos-tracker/"
BUG_REPORT_URL="https://github.com/coreos/fedora-coreos-tracker/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=40
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=40
SUPPORT_END=2025-05-13
VARIANT="CoreOS"
VARIANT_ID=coreos
OSTREE_VERSION='40.20240416.3.1'
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 26 (13 by maintainers)
Would you be able to get a debug log for the full 10-15 mins of the slow start for the binding?
Hello dear developers!
It’s me! Help me!
openHAB versions 4.1.0 and previous ones work great and do not cause any problems. When I update to 4.1.1, 4.2.0 or any other versions (including snapshot and milestone), I always get a problem with Network Binding.
I’ve been struggling with network binding for 7 months now!!! I need a doctor!
My system: ASUS PN41 PE (PentiumSilver N6000 1.10GHz /8GB RAM/SSD) / WinSrv2022 Latest OHv4.2.0, AzuleJDK v17 Latest, Mosquitto v2.0.18, Z2M v1.39.0, PosgeSQLv14.10 + rrd4j (oh bult-in)
IP address 192.168.13.5/24 [eth5] is selected in openHAB (IPv6 is disabled), the broadcast address 192.168.13.255 is specified.
The system has LAN and WIFI adapters installed. The server is connected to the network via LAN. The server also has the Hyper-V (Virtual Machines) role installed, so there are two virtual adapters: one for the internal network of virtual machines and the second, this is a virtual one over a physical LAN (The system works through this adapter. Standard connection for Hyper-V).
Through network binding I monitor the state:
Some Network Binding things
Netwok Device common config
Server service standart config
What works wrong in network binding:
Temporarily I disabled unnecessary network adapters. In the settings of things, I specified interface eth5 (for network devices) or lo0 (for services on the server) on which they should work.
Now the openHAB v4.2.0 loads and shows the state of things (of network binding) quickly, (unnecessary network adapters are turned off!), but determines the state of hosts and services is not stable (many OFF states).
v4.1.0 (was fine) and v4.2.0 (random OFF). Solid is ON, empty if OFF
v4.2.0 (image enlarged for convenience)
I do not know what to do. I would like to use the latest version of the system, and not stay on 4.1.0. Maybe I can help somehow? Well, help!
My old topic for 4.1.1 update
You can limit the interfaces to use in the Advanced settings of your Thing: