Skip to content

Multiples socket hang up and errors 500 related on high traffics [solved via R&D] #444

@jthibodeauCrakmedia

Description

@jthibodeauCrakmedia

Hi,

We are using your app heavily and we have millions of users per month on our website.
We plugged DataDog agent into the app to analyse some datas to response quick.

We came to a point where we have so much traffic. Socket hang up where throw pretty much randomly on all renderers at differents timestamp.

After digging further more, we found out a correlation between the socket hang up and the SSR timeout from the ILC.

We found a solution.

We wanted to share that to the community. If any others people are stuck to that error.
image
The socket hang up that are popping up after the fix.. we suspect there are not correlated with that error.

So, regarding the solution, let say you have all microfrontend SSR timeout to 1000ms, modify the freeSocketTimeout on all agents to less then the 1000ms.

cfa/ilc/server/tailor/request-fragment.js

const kaAgent = new Agent({ freeSocketTimeout: 750 });
const kaAgentHttps = new HttpsAgent({ freeSocketTimeout: 750 });

Article inspired to solve the issue

Hope somes people get their fix as well! :-)

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions