awslabs / awslabs/amazon-kinesis-client-nodejs

Is there any way to run some logic only on one child process?

Open
#81 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
304
Forks
198
Avg merge
36m
Merged PRs (30d)
2

Description

I want to run my application which uses KCL to k8s cluster, i need some healthcheck endpoint and i want to use this library - https://github.com/gajus/lightship. But i have a problem because MultiLangDaemon runs three child processes and each one try to listen on some port, so application dies. Is there any way to run listen only in one child process (if this child is not healthy then whole app will be killed), or maybe i should do it in another way like configure many ports and each child process should use next port number (but how can i determine which child process i am when calling listen??)

Contributor guide

Open the contributing guide

Research direction

No source file or test is identified. Start by tracing how MultiLangDaemon creates its child processes and how a child can be identified, then review the health-check integration described with lightship. Done would be a supported way to expose one health endpoint or safely assign distinct ports to the child processes.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, kubernetes, node.js
Domain
backend, distributed-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.