Create give useful names to confusing byte sums

This commit is contained in:
Matthew Bargar 2016-05-10 16:48:37 -04:00
parent d50c45280c
commit ee16d41cad
2 changed files with 5 additions and 2 deletions

View file

@ -34,7 +34,8 @@ export default class BasePathProxy {
config.set('server.basePath', this.basePath);
}
config.set('server.maxPayloadBytes', 1024 * 1024 * 1024);
const ONE_GIGABYTE = 1024 * 1024 * 1024;
config.set('server.maxPayloadBytes', ONE_GIGABYTE);
setupLogging(null, this.server, config);
setupConnection(null, this.server, config);

View file

@ -6,6 +6,8 @@ import { patternToIngest } from '../../../../common/lib/convert_pattern_and_inge
import { PassThrough } from 'stream';
import JSONStream from 'JSONStream';
const ONE_GIGABYTE = 1024 * 1024 * 1024;
export function registerBulk(server) {
server.route({
path: '/api/kibana/{id}/_bulk',
@ -13,7 +15,7 @@ export function registerBulk(server) {
config: {
payload: {
output: 'stream',
maxBytes: 1024 * 1024 * 1024
maxBytes: ONE_GIGABYTE
}
},
handler: function (req, reply) {