mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of https://github.com/arangodb/arangodb into generic-col-types
This commit is contained in:
commit
1b85c08b8d
|
@ -36,9 +36,9 @@ using namespace arangodb;
|
||||||
using namespace arangodb::basics;
|
using namespace arangodb::basics;
|
||||||
using namespace arangodb::rest;
|
using namespace arangodb::rest;
|
||||||
|
|
||||||
size_t const HttpCommTask::MaximalHeaderSize = 1 * 1024 * 1024; // 1 MB
|
size_t const HttpCommTask::MaximalHeaderSize = 2 * 1024 * 1024; // 2 MB
|
||||||
size_t const HttpCommTask::MaximalBodySize = 512 * 1024 * 1024; // 512 MB
|
size_t const HttpCommTask::MaximalBodySize = 1024 * 1024 * 1024; // 1 GB
|
||||||
size_t const HttpCommTask::MaximalPipelineSize = 512 * 1024 * 1024; // 512 MB
|
size_t const HttpCommTask::MaximalPipelineSize = 1024 * 1024 * 1024; // 1 GB
|
||||||
size_t const HttpCommTask::RunCompactEvery = 500;
|
size_t const HttpCommTask::RunCompactEvery = 500;
|
||||||
|
|
||||||
HttpCommTask::HttpCommTask(GeneralServer* server, TRI_socket_t sock,
|
HttpCommTask::HttpCommTask(GeneralServer* server, TRI_socket_t sock,
|
||||||
|
|
|
@ -161,6 +161,16 @@ void ImportFeature::validateOptions(
|
||||||
StringUtils::join(positionals, ", ");
|
StringUtils::join(positionals, ", ");
|
||||||
FATAL_ERROR_EXIT();
|
FATAL_ERROR_EXIT();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static unsigned const MaxBatchSize = 768 * 1024 * 1024;
|
||||||
|
|
||||||
|
if (_chunkSize > MaxBatchSize) {
|
||||||
|
// it's not sensible to raise the batch size beyond this value
|
||||||
|
// because the server has a built-in limit for the batch size too
|
||||||
|
// and will reject bigger HTTP request bodies
|
||||||
|
LOG(WARN) << "capping --batch-size value to " << MaxBatchSize;
|
||||||
|
_chunkSize = MaxBatchSize;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ImportFeature::start() {
|
void ImportFeature::start() {
|
||||||
|
|
|
@ -96,6 +96,7 @@ start() {
|
||||||
PORT=$2
|
PORT=$2
|
||||||
mkdir cluster/data$PORT
|
mkdir cluster/data$PORT
|
||||||
echo Starting $TYPE on port $PORT
|
echo Starting $TYPE on port $PORT
|
||||||
|
mkdir -p cluster/apps$PORT
|
||||||
build/bin/arangod -c none \
|
build/bin/arangod -c none \
|
||||||
--database.directory cluster/data$PORT \
|
--database.directory cluster/data$PORT \
|
||||||
--cluster.agency-endpoint tcp://127.0.0.1:$BASE \
|
--cluster.agency-endpoint tcp://127.0.0.1:$BASE \
|
||||||
|
|
Loading…
Reference in New Issue