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

Some page loading is slow (docker compose) #449

Open
sh-cho opened this issue Nov 6, 2023 · 2 comments
Open

Some page loading is slow (docker compose) #449

sh-cho opened this issue Nov 6, 2023 · 2 comments

Comments

@sh-cho
Copy link
Contributor

sh-cho commented Nov 6, 2023

image image

It takes more than 30 seconds to load.

Looks like it only happens in main page and login page. /url, /rule, /service pages are ok.

docker compose up -d
docker compose run web docker-compose-bootstrap

I set up my environment with this commands

$ docker compose run web createsuperuser
[+] Creating 2/0
 ✔ Container promgen-redis-1  Running                                                                                                                          0.0s
 ✔ Container promgen-mysql-1  Running                                                                                                                          0.0s
/docker-entrypoint.sh: exec: line 42: createsuperuser: not found

(FYI, It didn't work, so I attached web container and executed promgen createsuperuser inside)

logs

2023-11-06 22:39:56 promgen-web-1           | [2023-11-06 13:39:56 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:63)
2023-11-06 22:39:56 promgen-web-1           | [2023-11-06 13:39:56 +0000] [63] [INFO] Worker exiting (pid: 63)
2023-11-06 22:39:56 promgen-web-1           | [2023-11-06 13:39:56 +0000] [1] [ERROR] Worker (pid:63) exited with code 1
2023-11-06 22:39:56 promgen-web-1           | [2023-11-06 13:39:56 +0000] [1] [ERROR] Worker (pid:63) exited with code 1.
2023-11-06 22:39:56 promgen-web-1           | [2023-11-06 13:39:56 +0000] [65] [INFO] Booting worker with pid: 65
2023-11-06 22:40:00 promgen-mysql-1         | 2023-11-06T13:40:00.807959Z 121 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
2023-11-06 22:40:01 promgen-mysql-1         | 2023-11-06T13:40:01.585994Z 122 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
2023-11-06 22:40:01 promgen-mysql-1         | 2023-11-06T13:40:01.632003Z 123 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'

If I enter to slow page(main or login), I can see worker timeout and exiting logs

my environment

  • os: macOS 13.2, M1
  • docker: 24.0.2
  • docker compose: v2.19.1
  • promgen image: line/promgen:latest (0.58.3)
    • (but version on website title is 0.58.1 😮)
@kfdm
Copy link
Collaborator

kfdm commented Nov 8, 2023

Hmm, I just tried a test with docker-compose myself, but I'm not seeing any slowdown on a new install. My regular development install has a lot of data, but even with that I'm not seeing any unexpected slowdowns (there are a few places I know that are slow, but I'm not seeing 30 seconds slow anywhere)

It's going to be difficult for me to allocate time for this right now, but if you can narrow down a bit more of a test case, that'll help me know what to check.

/docker-entrypoint.sh: exec: line 42: createsuperuser: not found

There might be a few places like that which should be prefixed with promgen as the base command. I will try to check and update the docs later 🙇

@sh-cho
Copy link
Contributor Author

sh-cho commented Nov 8, 2023

Ok I'll check more later :)

What version of docker-compose do you use? (check with docker-compose version)

Maybe it is related to docker compose issue. Since recent compose spec is 3.8 and promgen's compose version is 2.
And I use docker compose V2(docker compose), which actually ignores version in compose.yml and uses latest scheme. (docker compose cli versioning docs). Probably it's the reason?

Anyway docker compose V1(docker-compose) is not supported anymore, I think it is good to update compose.yml up-to-date. I'll make a patch if it's ok 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants