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

nestjs-asyncapi causes service to crash in Node Cluster + running on K8S cluster #571

Closed
yarinvak opened this issue May 6, 2024 · 1 comment

Comments

@yarinvak
Copy link

yarinvak commented May 6, 2024

Describe the bug

Hey guys! We are considering using nestjs-asyncapi in our company, and we tried to use your library in our nestjs services.

Suddenly, we came across a weird bug which when we run our nestjs app using Node Cluster, it is crashing, and the cause - is the nestjs-asyncapi library.

When it's added - the cluster app is not responding and the nestjs application is not loading. When the dependency doesn't exist - it's working perfectly.

Worth to mention that when using the dependency in an app that is not running on cluster mode, it's working.

Also worth to mention - the node instance is running on k8s cluster! when we use a simple docker or run it locally (even with Node cluster) - it works, but on k8s cluster it doesn't. Very specific specs.

To Reproduce
Steps to reproduce the behavior:

  1. Create a nestjs node application
  2. Install the nestjs-asyncapi dependency
  3. Run in nodejs cluster mode on a K8S Cluster
  4. The app will not bootstrap correctly

I'm trying to debug it, because it's very weird behaviour which may also be linked to our very specific configuration, but I wonder if someone encountered this issue using this library.

Environment

Nest version: 9.3.10

For Tooling issues:

  • Node version: 18
  • Platform: Linux
  • Running on Kubernetes Cluster
Copy link

github-actions bot commented May 6, 2024

Hello! Thank you for filing an issue.

If this is a bug report, please include relevant logs to help us debug the problem.

@yarinvak yarinvak closed this as completed May 6, 2024
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

1 participant