Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check task duration: why does otrc generation take so long? #28

Closed
jpmens opened this issue Feb 26, 2024 · 2 comments
Closed

Check task duration: why does otrc generation take so long? #28

jpmens opened this issue Feb 26, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@jpmens
Copy link
Member

jpmens commented Feb 26, 2024

d1

system: generate user .otrc files in userdata ------------------------------------- 12.14s
system: create password files in userdata ------------------------------------------ 8.43s
ot-recorder: add/delete keys for users which have them ----------------------------- 6.75s
nginx: add users to htpasswd ------------------------------------------------------- 6.25s
system: add ufw open ports --------------------------------------------------------- 4.71s
system: install required packages -------------------------------------------------- 4.11s
lego: enroll at letsencrypt -------------------------------------------------------- 1.87s
frontend: unpack dist -------------------------------------------------------------- 1.85s
ot-recorder: install package ------------------------------------------------------- 1.60s
system: create directories --------------------------------------------------------- 1.58s
ot-recorder: launch service -------------------------------------------------------- 1.54s
Gathering Facts -------------------------------------------------------------------- 1.46s
restart_mosquitto ------------------------------------------------------------------ 1.20s
lego: get certificate information -------------------------------------------------- 1.13s
system: enable ufw ----------------------------------------------------------------- 1.10s
system: template out sys.info ------------------------------------------------------ 1.09s
nginx: install OwnTrack's index.php ------------------------------------------------ 1.06s
lego: template out enroller -------------------------------------------------------- 1.06s
system: install OwnTracks repository key ------------------------------------------- 1.05s
lego: template out certificate/key installer --------------------------------------- 1.01s
@jpmens jpmens added the bug Something isn't working label Feb 26, 2024
@jpmens
Copy link
Member Author

jpmens commented Feb 26, 2024

Raspi 3B

system: generate user .otrc files in userdata ---------------------- 23.46s
system: create password files in userdata -------------------------- 16.59s
system: install required packages ---------------------------------- 16.36s
system: add ufw open ports ----------------------------------------- 14.13s
ot-recorder: add/delete keys for users which have them ------------- 11.47s
nginx: add users to htpasswd --------------------------------------- 11.02s
ot-recorder: launch service ----------------------------------------- 7.29s
mosquitto: template $HOME/.config/mosquitto_pub --------------------- 6.05s
Gathering Facts ----------------------------------------------------- 6.04s
system: create directories ------------------------------------------ 5.96s
ot-recorder: install package ---------------------------------------- 5.83s
system: template out sys.info --------------------------------------- 5.79s
restart_mosquitto --------------------------------------------------- 4.88s
frontend: unpack dist ----------------------------------------------- 4.88s
system: enable ufw -------------------------------------------------- 3.67s
system: install OwnTracks repository key ---------------------------- 3.52s
lego: get certificate information ----------------------------------- 3.30s
lego: enroll at letsencrypt ----------------------------------------- 3.28s
system: install OwnTracks repository -------------------------------- 3.17s
nginx: template owntracks site configuration ------------------------ 2.65s

@jpmens jpmens changed the title Check task duration: why do these take so long? Check task duration: why does otrc generation take so long? Feb 26, 2024
@jpmens
Copy link
Member Author

jpmens commented Feb 26, 2024

on d1, just the one task takes:

system: generate user .otrc files in userdata ------------------------------------- 10.06s

if I rip out the whole source template files/otrc.j2 and replace by content bla (i.e. no processing whatsoever), the same task takes:

system: generate user .otrc files in userdata -------------------------------------- 9.77s

In other words, this isn't something which is taking a lot of time in the template itself, it's simply that this task takes so long as template is slow.

Nothing we can do about it.

@jpmens jpmens closed this as completed Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant