Skip to content

Commit de11573

Browse files
author
Rafa de la Torre
authored
Merge pull request #525 from CartoDB/copy-configs-tweak
Copy configs tweak
2 parents 097900f + a709e8f commit de11573

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

app/controllers/copy_controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function handleCopyFrom (logger) {
102102
const sql = req.query.q;
103103
const { userDbParams, user, dbRemainingQuota } = res.locals;
104104
const isGzip = req.get('content-encoding') === 'gzip';
105-
const COPY_FROM_MAX_POST_SIZE = global.settings.copy_from_max_post_size || 1.99 * 1024 * 1024 * 1024; // 1.99 GB
105+
const COPY_FROM_MAX_POST_SIZE = global.settings.copy_from_max_post_size || 2 * 1024 * 1024 * 1024; // 2 GB
106106
const COPY_FROM_MAX_POST_SIZE_PRETTY = global.settings.copy_from_max_post_size_pretty || '2 GB';
107107

108108
const streamCopy = new StreamCopy(sql, userDbParams);

config/environments/development.js.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports.finished_jobs_ttl_in_seconds = 2 * 3600; // 2 hours
3636
module.exports.batch_query_timeout = 12 * 3600 * 1000; // 12 hours in milliseconds
3737
module.exports.batch_log_filename = 'logs/batch-queries.log';
3838
module.exports.copy_timeout = "'5h'";
39-
module.exports.copy_from_max_post_size = 1.99 * 1024 * 1024 * 1024 // 1.99 GB;
39+
module.exports.copy_from_max_post_size = 2 * 1024 * 1024 * 1024 // 2 GB;
4040
module.exports.copy_from_max_post_size_pretty = '2 GB';
4141
// Max number of queued jobs a user can have at a given time
4242
module.exports.batch_max_queued_jobs = 64;

config/environments/production.js.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports.finished_jobs_ttl_in_seconds = 2 * 3600; // 2 hours
3737
module.exports.batch_query_timeout = 12 * 3600 * 1000; // 12 hours in milliseconds
3838
module.exports.batch_log_filename = 'logs/batch-queries.log';
3939
module.exports.copy_timeout = "'5h'";
40-
module.exports.copy_from_max_post_size = 1.99 * 1024 * 1024 * 1024 // 1.99 GB;
40+
module.exports.copy_from_max_post_size = 2 * 1024 * 1024 * 1024 // 2 GB;
4141
module.exports.copy_from_max_post_size_pretty = '2 GB';
4242
// Max number of queued jobs a user can have at a given time
4343
module.exports.batch_max_queued_jobs = 64;

config/environments/staging.js.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ module.exports.db_batch_port = '5432';
3636
module.exports.finished_jobs_ttl_in_seconds = 2 * 3600; // 2 hours
3737
module.exports.batch_query_timeout = 12 * 3600 * 1000; // 12 hours in milliseconds
3838
module.exports.batch_log_filename = 'logs/batch-queries.log';
39+
module.exports.copy_timeout = "'5h'";
40+
module.exports.copy_from_max_post_size = 2 * 1024 * 1024 * 1024 // 2 GB;
41+
module.exports.copy_from_max_post_size_pretty = '2 GB';
3942
// Max number of queued jobs a user can have at a given time
4043
module.exports.batch_max_queued_jobs = 64;
4144
// Capacity strategy to use.

config/environments/test.js.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module.exports.finished_jobs_ttl_in_seconds = 2 * 3600; // 2 hours
3434
module.exports.batch_query_timeout = 5 * 1000; // 5 seconds in milliseconds
3535
module.exports.batch_log_filename = 'logs/batch-queries.log';
3636
module.exports.copy_timeout = "'5h'";
37-
module.exports.copy_from_max_post_size = 1.99 * 1024 * 1024 * 1024 // 1.99 GB;
37+
module.exports.copy_from_max_post_size = 2 * 1024 * 1024 * 1024 // 2 GB;
3838
module.exports.copy_from_max_post_size_pretty = '2 GB';
3939
// Max number of queued jobs a user can have at a given time
4040
module.exports.batch_max_queued_jobs = 64;

0 commit comments

Comments
 (0)