Open eudoxos opened 1 week ago
This is done in https://github.com/mupif/mupif-monitor/commit/c20e8ab9996b10734bc1fe837bb6395187a3dc07
I am currently trying to figure out why https://musicode.mupif.org/safe-api/scheduler-status2/ is so slow The endpoint calls schedulerInfo method defined in monitor.py.
In schedulerInfo method there is
export MUPIF_NS="172.22.2.1:10000"
import Pyro5
import mupif
ns=mupif.pyroutil.connectNameserver()
query = ns.yplookup(meta_any={"type:scheduler"})
uri=query['mupif.scheduler'][0]
s = Pyro5.api.Proxy(uri)
executions = s.getExecutions(status='Running')
len(executions)
140
Filtering of executions by status is done in https://github.com/mupif/mupifDB/commit/2081d6965e4269237dab7e7c9b4a461d9c93b70f https://github.com/mupif/mupifDB/commit/b71762eddd574a3b3370cb763fe6e482bb949326
This commit to mupif@Musicode disables fetching logs https://github.com/mupif/mupif/commit/ff335e4f7879b5391cf07cbb1e19762977a2e29c (@stanislavsulc sorry I have no time to really sync that with the container; apologies for the extra merge into Musicode — can you take care of that?)
The jobman logs are shown in monitor (jobman statistics, jobman tree allows to show logs of running models). This need to be tested if not breaking the app. Borek
On Mon, 21 Oct 2024, 06:33 eudoxos, @.***> wrote:
This commit to @. disables fetching logs @. https://github.com/mupif/mupif/commit/ff335e4f7879b5391cf07cbb1e19762977a2e29c @.*** https://github.com/stanislavsulc sorry I have no time to really sync that with the container; apologies for the extra merge into Musicode — can you take care of that?)
— Reply to this email directly, view it on GitHub https://github.com/mupif/mupif-monitor/issues/1#issuecomment-2425562094, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEHV23VXW7VERJPIBGUVOA3Z4R7ZVAVCNFSM6AAAAABQH23FTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRVGU3DEMBZGQ . You are receiving this because you commented.Message ID: @.***>
Geolocation is queried remotely after every update of VPN status (every few seconds), for each client; this should be cached (with infinite TTL). It also causes the markers to briefly disappear and appear one after another during the refresh.
https://github.com/mupif/mupif-monitor/blob/f76b34b1b37ac9621f259e20f713275257993be2/src/stores/vpnStat.js#L44-L56