configure unifi with pfsense
-
Sure you can off-load DHCP though I'm not sure how that might affect data collection in the controller.
It really depends what features you are using in Unifi.
-
@stephenw10 said in configure unifi with pfsense:
might affect data collection in the controller.
I don't use dhcp on the controller or box the controller is running on - and it gets all the data just fine. I doubt dhcp would be the reason its falling down.. I mean dhcp doesn't use more ram the more clients that get a lease or anything. And its not a memory hungry or cpu intensive process either.
If I had to guess its the issue of writing data to the db for more and more clients.
What version of mongo is running on it? Is it still the old like 3.6, has it been upgraded to 4.4 or 7 even which the new controller supports - but it does require AVX, which is quite possible the DMP doesn't even support?
I would be curious if turning off history has any effect, like 600 clients before it falls down, etc.. SSH to the thing and do a mongo -version
user@UC:~$ mongo -version MongoDB shell version v4.4.29 Build Info: { "version": "4.4.29", "gitVersion": "f4dda329a99811c707eb06d05ad023599f9be263", "openSSLVersion": "OpenSSL 1.1.1f 31 Mar 2020", "modules": [], "allocator": "tcmalloc", "environment": { "distmod": "ubuntu2004", "distarch": "x86_64", "target_arch": "x86_64" } } user@UC:~$
I am curious if their own devices for the controller, like their cloudkey and or their DMs support the ability to run mongo 7.. Since 4.4 has been end of life since feb of this year. If running on your own hardware, that is on you. But haven't look to see even if you run their hardware if you can run 7 of mongo.
-
@johnpoz said in configure unifi with pfsense:
I am curious if their own devices for the controller, like their cloudkey and or their DMs support the ability to run mongo 7.. Since 4.4 has been end of life since feb of this year. If running on your own hardware, that is on you. But haven't look to see even if you run their hardware if you can run 7 of mongo.
Dream Machine Pro can't, it uses Quad-core ARM
Cortex
-A57 at 1.7 GHz.
https://www.mongodb.com/community/forums/t/core-dump-on-mongodb-5-0-on-rpi-4/115291/14That is the reason, I think, that they will be supporting mongod 3.6 for a long time..
https://techspecs.ui.com/unifi/unifi-cloud-gateways/udm-pro
Edit: raspberry pi 5 can go up to mongod 6, it has a 64-bit Arm Cortex-A76 CPU, but can't install mongod 7.
Unless you use this method: https://github.com/themattman/mongodb-raspberrypi-binaries -
@zaibi12345 said in configure unifi with pfsense:
1 unifi dream machine pro controller with 20 access points connected with it, In lab if more than 400 users get connect, it got crashed all connected users faced disconnectivity. 1200 users is actual limit as advised by unifi support team.
actually we need to connect more than 2000 users at a time and 5 controllers is not a solutionI use a self hosted controller https://help.ui.com/hc/en-us/articles/360012282453-Self-Hosting-a-UniFi-Network-Server
Easily installed via this script https://community.ui.com/questions/UniFi-Installation-Scripts-or-UniFi-Easy-Update-Script-or-UniFi-Lets-Encrypt-or-UniFi-Easy-Encrypt-/ccbc7530-dd61-40a7-82ec-22b17f027776
Which I run on a Debian VM under Proxmox on a Mini PC also running pfsense as a VM.
For your application, being more generous with the hardware would be sensible. https://lazyadmin.nl/home-network/unifi-controller/ and https://techspecs.ui.com/unifi/cloud-keys-gateways/cloud-key-enterprise