@nsshunt/stsconfig 1.4.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/stsconfig.js +19 -1
package/package.json
CHANGED
package/stsconfig.js
CHANGED
|
@@ -49,7 +49,7 @@ const defconfig =
|
|
|
49
49
|
,poolSize: (process.env.POOL_SIZE === undefined ? 20 : parseInt(process.env.POOL_SIZE))
|
|
50
50
|
// Maximum number of CPUs (incl. logical processors) to use within the Microservice.
|
|
51
51
|
// Use -1 to use all available within the runtime container. Each CPU will spawn a node work thread.
|
|
52
|
-
,useCPUs: (process.env.MAX_CPU === undefined ? -1 :
|
|
52
|
+
,useCPUs: (process.env.MAX_CPU === undefined ? -1 : parseFloat(process.env.MAX_CPU))
|
|
53
53
|
// Automatically re-spawn a worker thread if one dies.
|
|
54
54
|
,respawnOnFail: (process.env.RESPAWN === undefined ? false : (process.env.RESPAWN === "true" ? true : false ))
|
|
55
55
|
// Default number of entries to create for a fresh database.
|
|
@@ -177,7 +177,25 @@ const defconfig =
|
|
|
177
177
|
// If true, instrument publish failures will be logged to debug output.
|
|
178
178
|
,publishdebug: (process.env.PUBLISH_DEBUG === undefined ? false : (process.env.PUBLISH_DEBUG === "true" ? true : false ))
|
|
179
179
|
|
|
180
|
+
// Transport(s) to use for sending instrumentation data to the instrumentation server
|
|
180
181
|
,transport: (process.env.TRANSPORT === undefined ? 0 : process.env.TRANSPORT)
|
|
182
|
+
|
|
183
|
+
// Instrument Defaults
|
|
184
|
+
// Logger lines (sliding window size)
|
|
185
|
+
,instrumentLoggerSize: (process.env.INSTRUMENT_LOGGER_SIZE === undefined ? 200 : parseInt(process.env.INSTRUMENT_LOGGER_SIZE))
|
|
186
|
+
|
|
187
|
+
// Histoogram bucket sizes (and default labels)
|
|
188
|
+
,instrumentHistogramBuckets: (process.env.INSTRUMENT_HISTOGRAM_BUCKETS === undefined ? [ 10, 20, 50, 100, 1000, 5000 ] : JSON.parse(process.env.INSTRUMENT_HISTOGRAM_BUCKETS))
|
|
189
|
+
|
|
190
|
+
// Sample interval (ms)
|
|
191
|
+
,instrumentSampleInterval: (process.env.INSTRUMENT_SAMPLE_INTERVAL === undefined ? 1000 : parseInt(process.env.INSTRUMENT_SAMPLE_INTERVAL))
|
|
192
|
+
|
|
193
|
+
// Sample size (number of readings to use for P(x) calculations. Time approx. (Sample Interval / 1000) * Sample Size, i.e. Caluclate P(x) on the observed data for the last 6 minutes.
|
|
194
|
+
,instrumentSampleSize: (process.env.INSTRUMENT_SAMPLE_SIZE === undefined ? 600 : parseInt(process.env.INSTRUMENT_SAMPLE_SIZE))
|
|
195
|
+
|
|
196
|
+
// Use secure cookies option when passing back cookies from STS services (such as STSAuth service).
|
|
197
|
+
// This setting will be ignore for production mode. In production mode services will always use secure cookies.
|
|
198
|
+
,useSecureCookies: (process.env.USE_SECURE_COOKIES === undefined ? false : (process.env.USE_SECURE_COOKIES === "true" ? true : false ))
|
|
181
199
|
}
|
|
182
200
|
|
|
183
201
|
// Preference order is YAML file then .env file
|