mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Create give useful names to confusing byte sums
This commit is contained in:
parent
d50c45280c
commit
ee16d41cad
2 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue