Nodebb benchmarking userslug api issues


  • Hello @PitaJ @julian

    I am doing the nodebb api performance testing using JMeter and I am facing some issues with userslug apis

    /api/user/:userslug
    /api/user/:userslug/upvoted
    /api/user/:userslug/downvoted
    /api/user/:userslug/bookmarks
    /api/user/:userslug/best
    /api/user/:userslug/posts
    

    this api are giving around 200 throughput

    api flow is
    my_application_UI => my_application_Backend => my_middleware => noebb apis

    (when I hit https://loadtest.com/discussion/user/:userslug it will go first to my application backend from ther it will go to my middleware service and from there it will go to nodebb apis)

    Note:
    My application backend and my middleware both are just proxy and there is not functionality added

    My server config
    my_application_UI => 12 pod 1GB
    my middleware => 12 pod
    nodebb => 12pod 4gb
    mongodb => 4core

    c9c39609-c694-4c47-b8cc-1006c9ec500e-image.png

    can you help me to solve this issues?

    CC: @vinu

  • Global Moderator Plugin & Theme Dev

    What issue?


  • @pitaj don't know exactly , also I test user apis

    https://community.nodebb.org/api/user/venkat123
    https://community.nodebb.org/api/user/venkat123/upvoted
    https://community.nodebb.org/api/user/venkat123/downvoted
    

    using AB tool there also seeing low throughput

    is it possible to share ur reports and server config?

  • Global Moderator Plugin & Theme Dev

    What throughput are you expecting? Is this a bottleneck for your usage?

    What is your setup?

  • GNU/Linux Admin

    @venkat123 said in Nodebb benchmarking userslug api issues:

    this api are giving around 200 throughput

    What is this metric compared to, for other routes?


  • @julian

    Here is the other api(category details api)

    /api/category/:cid
    

    this api is giving 1200 tps
    cfb3677a-a8e5-477a-a76d-30d5fc9b77a1-image.png

    also other apis are giving better tps around 1200.


  • @pitaj

    Environment setup details
    NodeBB => 12 Pods(each pod of 4GB RAM)
    MondeDB => 1pod(4 core machine)

    We are using NodeBB in "Sunbird platform". While we do benchmark of NodeBB API's, we have noticed this issue.

    Most of the {userslug} API's are not performaing well(throughput around 140) as metioned by @venkat123 in the above thread.

    /api/user/venkat123
    /api/user/venkat123/upvoted
    /api/user/venkat123/downvoted
    

    Where as Category read API's are performing well. We are alble to get better through put around 1200.

    /api/category/:cid
    

Suggested Topics

| |