7.0.0-next.67 • Published 2 years ago

@gasket/plugin-happyfeet v7.0.0-next.67

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@gasket/plugin-happyfeet

Integrates with happy-feet to add application instance termination when health metrics such as memory usage enter a bad state.

Installation

npm i @gasket/plugin-happyfeet

Update your gasket file plugin configuration:

// gasket.js

+ import pluginHappyfeet from '@gasket/plugin-happyfeet';

export default makeGasket({
  plugins: [
+   pluginHappyFeet
  ]
});

Configuration

You can specify the various happy-feet config options in gasket.js.

// gasket.js
export default makeGasket({
   happyFeet: {
    // https://github.com/asilvas/happy-feet#usage
    escalationSoftLimitMin: 20, // 20s
    escalationSoftLimitMax: 300, // 5min
    uncaughtExceptionSoftLimit: 1,
    uncaughtExceptionHardLimit: void 0,
    rssSoftLimit: 0.9 * 1024 * 1024 * 1024, // ~900MB
    rssHardLimit: 1.8 * 1024 * 1024 * 1024, // ~1.9GB
    logOnUnhappy: true
  }
});

Happy Feet for gasket has no default configuration.

Actions

getHappyFeet

This action is used to configure and get a Happy Feet instance. You can specify the various happy-feet config options in the gasketConfig or pass the config object directly to the action.

gasketConfig example

// gasket.js
export default makeGasket({
   happyFeet: {
    // https://github.com/asilvas/happy-feet#usage
    escalationSoftLimitMin: 20, // 20s
    escalationSoftLimitMax: 300, // 5min
    uncaughtExceptionSoftLimit: 1,
    uncaughtExceptionHardLimit: void 0,
    rssSoftLimit: 0.9 * 1024 * 1024 * 1024, // ~900MB
    rssHardLimit: 1.8 * 1024 * 1024 * 1024, // ~1.9GB
    logOnUnhappy: true
  }
});
const happy = gasket.actions.getHappyFeet();

happyConfig example

const happyConfig =  {
  // https://github.com/asilvas/happy-feet#usage
  escalationSoftLimitMin: 20, // 20s
  escalationSoftLimitMax: 300, // 5min
  uncaughtExceptionSoftLimit: 1,
  uncaughtExceptionHardLimit: void 0,
  rssSoftLimit: 0.9 * 1024 * 1024 * 1024, // ~900MB
  rssHardLimit: 1.8 * 1024 * 1024 * 1024, // ~1.9GB
  logOnUnhappy: true
}
const happy = gasket.actions.getHappyFeet(happyConfig);

License

MIT

7.3.1

1 year ago

7.3.0

1 year ago

7.1.0-next.1

1 year ago

7.1.0-next.0

1 year ago

7.1.0-next.7

1 year ago

7.1.0-next.6

1 year ago

7.1.0-next.3

1 year ago

7.1.0-next.2

1 year ago

7.1.0-next.5

1 year ago

7.1.0-next.4

1 year ago

7.0.15

1 year ago

7.1.0

1 year ago

7.2.3

1 year ago

7.1.0-canary.3

1 year ago

7.1.0-canary.1

1 year ago

7.1.0-canary.2

1 year ago

7.2.0

1 year ago

7.3.4

12 months ago

7.3.3

1 year ago

7.3.2

1 year ago

7.0.4

2 years ago

7.0.0

2 years ago

7.0.1

2 years ago

6.47.5

2 years ago

7.0.0-next.69

2 years ago

7.0.0-next.70

2 years ago

7.0.0-next.67

2 years ago

7.0.0-next.68

2 years ago

7.0.0-next.66

2 years ago

7.0.0-next.65

2 years ago

7.0.0-next.64

2 years ago

7.0.0-next.63

2 years ago

7.0.0-next.62

2 years ago

7.0.0-next.61

2 years ago

6.47.1

2 years ago

7.0.0-next.44

2 years ago

7.0.0-next.45

2 years ago

7.0.0-next.46

2 years ago

7.0.0-next.47

2 years ago

7.0.0-next.48

2 years ago

7.0.0-next.49

2 years ago

7.0.0-next.40

2 years ago

7.0.0-next.41

2 years ago

7.0.0-next.42

2 years ago

7.0.0-next.54

2 years ago

7.0.0-next.55

2 years ago

7.0.0-next.56

2 years ago

7.0.0-next.57

2 years ago

7.0.0-next.58

2 years ago

7.0.0-next.59

2 years ago

7.3.0-canary.2

2 years ago

7.3.0-canary.1

2 years ago

7.3.0-canary.0

2 years ago

7.0.0-next.50

2 years ago

7.0.0-next.51

2 years ago

7.2.0-canary.20

2 years ago

7.0.0-next.52

2 years ago

7.3.0-canary.4

2 years ago

7.0.0-next.53

2 years ago

7.3.0-canary.3

2 years ago

7.0.0-next.29

2 years ago

7.2.0-canary.0

2 years ago

7.2.0-canary.1

2 years ago

7.0.0-next.28

2 years ago

7.0.0-next.60

2 years ago

7.0.0-next.32

2 years ago

7.0.0-next.33

2 years ago

7.0.0-next.34

2 years ago

7.0.0-next.35

2 years ago

7.0.0-next.36

2 years ago

7.0.0-next.37

2 years ago

7.0.0-next.38

2 years ago

7.0.0-next.39

2 years ago

7.0.1-canary.12

2 years ago

7.0.1-canary.11

2 years ago

7.0.0-next.30

2 years ago

7.0.1-canary.10

2 years ago

7.0.0-next.31

2 years ago

7.0.0-next.26

2 years ago

7.0.0-next.27

2 years ago

7.0.0-next.25

2 years ago

7.0.0-next.22

2 years ago

7.0.0-next.23

2 years ago

7.0.0-next.21

2 years ago

7.0.0-next.20

2 years ago

7.0.0-next.9

2 years ago

7.0.0-next.10

2 years ago

7.0.0-next.7

2 years ago

7.0.0-next.11

2 years ago

7.0.0-next.8

2 years ago

7.0.0-next.12

2 years ago

7.0.0-next.13

2 years ago

7.0.0-next.6

2 years ago

7.0.0-next.5

2 years ago

6.46.8

2 years ago

7.0.0-next.4

2 years ago

7.0.0-next.3

2 years ago

7.0.0-next.2

2 years ago

7.0.0-next.1

2 years ago

7.0.0-next.0

2 years ago

6.46.7

2 years ago

7.0.0-cli.7

2 years ago

7.0.0-cli.6

2 years ago

6.46.1-cli.0

2 years ago

7.0.0-cli.5

2 years ago

7.0.0-cli.4

2 years ago

7.0.0-cli.1

2 years ago

7.0.0-cli.0

2 years ago

7.0.0-cli.3

2 years ago

7.0.0-cli.2

2 years ago

7.0.0-canary.1

2 years ago

6.45.0

2 years ago

6.44.0

2 years ago

6.39.1

3 years ago

6.39.0

3 years ago