Skip to content

disable heartbeat check for a specific microservice #1120

Answered by icebob
AndreaDelliGatti asked this question in Q&A
Discussion options

You must be logged in to vote

The heartbeat checks the connectivity of nodes, not services. You can disable it in broker options with

// moleculer.config.js
module.exports = {
    registry: {
        discoverer: {
            type: "Local",
            options: {
                // Disable heartbeat checking & sending, if true
                disableHeartbeatChecks: false
            }
        }
    }    
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AndreaDelliGatti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants