7.0.4 • Published 9 months ago

@gasket/plugin-happyfeet v7.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months 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.0.4

9 months ago

7.0.0

10 months ago

7.0.1

10 months ago

6.47.5

10 months ago

7.0.0-next.69

10 months ago

7.0.0-next.70

10 months ago

7.0.0-next.67

10 months ago

7.0.0-next.68

10 months ago

7.0.0-next.66

10 months ago

7.0.0-next.65

10 months ago

7.0.0-next.64

10 months ago

7.0.0-next.63

10 months ago

7.0.0-next.62

11 months ago

7.0.0-next.61

11 months ago

6.47.1

1 year ago

7.0.0-next.44

12 months ago

7.0.0-next.45

12 months ago

7.0.0-next.46

12 months ago

7.0.0-next.47

12 months ago

7.0.0-next.48

11 months ago

7.0.0-next.49

11 months ago

7.0.0-next.40

1 year ago

7.0.0-next.41

1 year ago

7.0.0-next.42

12 months ago

7.0.0-next.54

11 months ago

7.0.0-next.55

11 months ago

7.0.0-next.56

11 months ago

7.0.0-next.57

11 months ago

7.0.0-next.58

11 months ago

7.0.0-next.59

11 months ago

7.3.0-canary.2

1 year ago

7.3.0-canary.1

1 year ago

7.3.0-canary.0

1 year ago

7.0.0-next.50

11 months ago

7.0.0-next.51

11 months ago

7.2.0-canary.20

1 year ago

7.0.0-next.52

11 months ago

7.3.0-canary.4

1 year ago

7.0.0-next.53

11 months ago

7.3.0-canary.3

1 year ago

7.0.0-next.29

1 year ago

7.2.0-canary.0

1 year ago

7.2.0-canary.1

1 year ago

7.0.0-next.28

1 year ago

7.0.0-next.60

11 months ago

7.0.0-next.32

1 year ago

7.0.0-next.33

1 year ago

7.0.0-next.34

1 year ago

7.0.0-next.35

1 year ago

7.0.0-next.36

1 year ago

7.0.0-next.37

1 year ago

7.0.0-next.38

1 year ago

7.0.0-next.39

1 year ago

7.0.1-canary.12

1 year ago

7.0.1-canary.11

1 year ago

7.0.0-next.30

1 year ago

7.0.1-canary.10

1 year ago

7.0.0-next.31

1 year ago

7.0.0-next.26

1 year ago

7.0.0-next.27

1 year ago

7.0.0-next.25

1 year ago

7.0.0-next.22

1 year ago

7.0.0-next.23

1 year ago

7.0.0-next.21

1 year ago

7.0.0-next.20

1 year ago

7.0.0-next.9

1 year ago

7.0.0-next.10

1 year ago

7.0.0-next.7

1 year ago

7.0.0-next.11

1 year ago

7.0.0-next.8

1 year ago

7.0.0-next.12

1 year ago

7.0.0-next.13

1 year ago

7.0.0-next.6

1 year ago

7.0.0-next.5

1 year ago

6.46.8

1 year ago

7.0.0-next.4

1 year ago

7.0.0-next.3

1 year ago

7.0.0-next.2

1 year ago

7.0.0-next.1

1 year ago

7.0.0-next.0

1 year ago

6.46.7

1 year ago

7.0.0-cli.7

1 year ago

7.0.0-cli.6

1 year ago

6.46.1-cli.0

1 year ago

7.0.0-cli.5

1 year ago

7.0.0-cli.4

1 year ago

7.0.0-cli.1

1 year ago

7.0.0-cli.0

1 year ago

7.0.0-cli.3

1 year ago

7.0.0-cli.2

1 year ago

7.0.0-canary.1

1 year ago

6.45.0

1 year ago

6.44.0

2 years ago

6.39.1

2 years ago

6.39.0

2 years ago