Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Zenarmor (Sensei)
»
Sensei database recommendations for about 7 days of traffic
« previous
next »
Print
Pages: [
1
]
Author
Topic: Sensei database recommendations for about 7 days of traffic (Read 4673 times)
dinguz
Sr. Member
Posts: 275
Karma: 13
Sensei database recommendations for about 7 days of traffic
«
on:
September 20, 2021, 09:41:39 am »
I would like to have about 7 days of traffic data to base reporting on. The Sensei installer classifies my router as low-end hardware, and only allows to install a local Mongodb or a remote Elasticsearch instance.
When configuring Sensei, the GUI recommends to use Mongodb with up to 2 days of traffic data, and use Elasticsearch for longer periods, but as said, the installer won't let me install it.
I'm a bit stuck here. Should I - against the recommendations - use Mongodb with a longer retention period, or should I somehow seek to install Sensei with Elasticsearch?
The system is a Barracuda F18 (dual Atom-based, memory and storage upgraded to 8 GB RAM, 128GB SSD) and Sensei is its main task, it's not running any other resource-heavy services.
Logged
In theory there is no difference between theory and practice. In practice there is.
athurdent
Sr. Member
Posts: 251
Karma: 23
Re: Sensei database recommendations for about 7 days of traffic
«
Reply #1 on:
September 20, 2021, 10:13:05 am »
With an SSD and 8G RAM, I'd opt for Elasticsearch. I tried Mongo with more than 2 days in the past, and it was really slow displaying statistics compared to Elasticsearch.
Logged
dinguz
Sr. Member
Posts: 275
Karma: 13
Re: Sensei database recommendations for about 7 days of traffic
«
Reply #2 on:
September 20, 2021, 11:25:12 am »
The installer doesn't offer me the option to install Elasticsearch. Can I bypass this restriction somehow?
Logged
In theory there is no difference between theory and practice. In practice there is.
sy
Hero Member
Posts: 595
Karma: 44
Re: Sensei database recommendations for about 7 days of traffic
«
Reply #3 on:
September 23, 2021, 04:40:03 pm »
Hi,
You can bypass by adding a static CPU score then can be installed Elasticsearch. Please follow the instructions:
-Log in to the console as root
- Open this this file: /usr/local/opnsense/scripts/OPNsense/Sensei/check_hardware.sh
- Add 37. line CPU_SCORE=301000
like;
CPU_SCORE=301000
if [ $CPU_SCORE -le 300000 ];
Logged
dinguz
Sr. Member
Posts: 275
Karma: 13
Re: Sensei database recommendations for about 7 days of traffic
«
Reply #4 on:
September 24, 2021, 01:14:34 pm »
Thanks for the info, I'll try it out.
Edit: it's running now, first impressions are fine. I now need to let it sit for a couple of days to allow data to be gathered, and then see how it goes. To be continued.
«
Last Edit: September 24, 2021, 04:29:23 pm by dinguz
»
Logged
In theory there is no difference between theory and practice. In practice there is.
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Zenarmor (Sensei)
»
Sensei database recommendations for about 7 days of traffic