This commit is contained in:
Herbert Wolverson
2023-01-24 18:32:40 +00:00
3 changed files with 17 additions and 11 deletions

View File

@@ -9,3 +9,4 @@ psutil
requests
schedule
waitress
setuptools >= 65.5.1

View File

@@ -1,5 +1,4 @@
#!/usr/bin/python3
# v1.3
import csv
import io
@@ -628,7 +627,7 @@ def refreshShapers():
upFlowIDstring = hex(major + stickOffset) + ':' + hex(minorByCPU[queue])
circuit['classid'] = flowIDstring
circuit['up_classid'] = upFlowIDstring
print("Added up_classid to circuit: " + circuit['up_classid'])
logging.info("Added up_classid to circuit: " + circuit['up_classid'])
# Create circuit dictionary to be added to network structure, eventually output as queuingStructure.json
maxDownload = min(circuit['maxDownload'],data[node]['downloadBandwidthMbps'])
maxUpload = min(circuit['maxUpload'],data[node]['uploadBandwidthMbps'])
@@ -725,8 +724,8 @@ def refreshShapers():
for node in data:
command = 'class add dev ' + interfaceA + ' parent ' + data[node]['parentClassID'] + ' classid ' + data[node]['classMinor'] + ' htb rate '+ str(data[node]['downloadBandwidthMbpsMin']) + 'mbit ceil '+ str(data[node]['downloadBandwidthMbps']) + 'mbit prio 3'
linuxTCcommands.append(command)
print("Up ParentClassID: " + data[node]['up_parentClassID'])
print("ClassMinor: " + data[node]['classMinor'])
logging.info("Up ParentClassID: " + data[node]['up_parentClassID'])
logging.info("ClassMinor: " + data[node]['classMinor'])
command = 'class add dev ' + interfaceB + ' parent ' + data[node]['up_parentClassID'] + ' classid ' + data[node]['classMinor'] + ' htb rate '+ str(data[node]['uploadBandwidthMbpsMin']) + 'mbit ceil '+ str(data[node]['uploadBandwidthMbps']) + 'mbit prio 3'
linuxTCcommands.append(command)
if 'circuits' in data[node]:

View File

@@ -55,6 +55,7 @@ Once that's done, change directory to `/wherever_you_put_libreqos/src/`, and run
```
This will take a while the first time, but it puts everything in the right place.
Remember to run this command everytime after `git pull`.
## Setup the LibreQoS Daemon
@@ -132,16 +133,21 @@ In the web browser, click `Reload LibreQoS` to setup your shaping rules.
5. Change to your `LibreQoS` directory (e.g. `cd /opt/libreqos`)
6. Update from Git: `git pull`
7. Recompile: `./build-rust.sh`
8. Resume screen with `screen -r`.
9. Go to console 0 (`Ctrl-A, 0`) and run `sudo ./lqosd` to restart the bridge/manager.
10. Go to console 1 (`Ctrl-A, 1`) and run `./lqos_node_manager` to restart the web server.
11. If you didn't see errors, detach with `Ctrl-A, D`
8. Run: `rust/remove_pinned_maps.sh`
9. Resume screen with `screen -r`.
10. Go to console 0 (`Ctrl-A, 0`) and run `sudo ./lqosd` to restart the bridge/manager.
11. Go to console 1 (`Ctrl-A, 1`) and run `./lqos_node_manager` to restart the web server.
12. If you didn't see errors, detach with `Ctrl-A, D`
# Bugfix for slowly Ubuntu starting (~2 minutes penalty) in situation when one of the networking interface is down during startup
#List all services whitch are requires network
#List all services which requires network
```
systemctl show -p WantedBy network-online.target
```
#For my instance the command helped
systemctl disable cloud-config.service iscsid.service cloud-final.service
#For my Ubuntu 22.04 instance this command helped
```
systemctl disable cloud-config iscsid cloud-final
```