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

Improve Performance #6461

Open
BacLuc opened this issue Dec 3, 2024 · 3 comments
Open

Improve Performance #6461

BacLuc opened this issue Dec 3, 2024 · 3 comments
Assignees

Comments

@BacLuc
Copy link
Contributor

BacLuc commented Dec 3, 2024

Start improving the performance

  • expand caching
  • improve queries and other things (worker mode)
@BacLuc
Copy link
Contributor Author

BacLuc commented Jan 2, 2025

Configuration of the PHP Runtime

from: https://frankenphp.dev/docs/performance/

Number of Threads and Workers

Worker mode

(with other things, else it gets even worse)

Don't use musl

✔️ We already use the Debian Docker image

Go Runtime Configuration

Does not seem to have much of an effect with the value set now.
But it seems to improve the worker mode.

file_server

Placeholders

resolve_root_symlink

Removing unnecessary Requests from the frontend

Optimize PHP Code

Query optimization

Caching

@BacLuc
Copy link
Contributor Author

BacLuc commented Jan 12, 2025

I looked quickly if maybe the problem is outside of the query or serialization,
and it seems ingress-nginx and the api container have the same request duration. its not that the ingress-nginx is waiting for the api to pick up the request.
image

@manuelmeister
Copy link
Member

manuelmeister commented Feb 25, 2025

Core Meeting Decision

  • app.ecamp3.ch/api/activities?camp=%2Fapi%2Fcamps%2F{id}%2F
    p90: 2.045
    med: 0.981
    count: 25'841
    prevent embedding of content nodes of collection requests
    (subresources & cache & query optimization)
  • app.ecamp3.ch/api/schedule_entries/{id}/
    p90: 1.908
    med: 0.162
    count: 17'118
    (investigate)
  • app.ecamp3.ch/api/content_types?categories=%2Fapi%2Fcategories%2F{id}%2F
    p90: 3.311
    med: 0.891
    count: 2'231
    (remove query)
  • app.ecamp3.ch/api/
    p90: 1.809
    med: 0.076
    count: 60'740
    (investigate)
  • app.ecamp3.ch/api/camps/{id}/
    p90: 1.762
    med: 0.188
    count: 35'527
    (investigate)
  • app.ecamp3.ch/api/content_node/material_nodes/{id}/
    p90: 1.523
    med: 0.544
    count: 15'277
    (investigate)
  • app.ecamp3.ch/api/camp_collaborations?camp=%2Fapi%2Fcamps%2F{id}%2F
    p90: 0.791
    med: 0.365
    count: 11'134
    (subresources/cache/query opt.)
  • app.ecamp3.ch/api/camp_collaborations/{id}/
    p90: 2.159
    med: 0.879
    count: 1'948
    (remove camp embedding?)
  • app.ecamp3.ch/api/days/{id}/day_responsibles
    p90: 0.505
    med: 0.218
    count: 84'226
    (investigate)
  • app.ecamp3.ch/api/activities/{id}/
    p90: 0.491
    med: 0.222
    count: 105'506
    (improve/investigate)

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

No branches or pull requests

3 participants