Project

General

Profile

Actions

Bug #12122

open

Perform greedy actions asychronously

Added by Guillaume LUCAS about 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Web Interface
Target version:
-
Start date:
07/10/2021
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Default
Affected Version:
2.5.x
Affected Architecture:

Description

Applying some actions takes time (from tens of seconds to several minutes). In the meantime, the web interface hangs (browser says "waiting for…") or crashes (nginx says "502 bad gateway").

Examples?
  • With dozens of VLANs on a unique lagg, modifying the physical network interfaces constituting the lagg takes several minutes (it's normal: in background, pfSense re-creates all interfaces (lagg0.X, lagg0.Y, etc.). During, the web interface is unavailable ("waiting for…") ;
  • "502 bad gateway" during CARP failover (by clicking on "temporarily Disable CARP" in Status > CARP or by shutting down the master or by removing the network cable) ;
  • "502 bad gateway" during some other day-to-day greedy actions but my brain memory is failing…

Can we imagine to execute greedy actions in background in a dedicated thread / external script (with tools like rabbitmq?) and display informative message? So the web interface will always be available.
Reload firewall rules and aliases is a good example: actions are done asychronously and the web interface stay available.

No data to display

Actions

Also available in: Atom PDF