Skip to content

Commit f389260

Browse files
luckylucky
authored andcommitted
optimize uplog default config
1 parent e9fdc46 commit f389260

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

library/src/main/java/com/qiniu/android/collect/ReportConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ public class ReportConfig {
1616
public double interval;
1717

1818
/**
19-
* 记录文件大于 uploadThreshold 会触发上传,单位:字节 默认为4 * 1024
19+
* 记录文件大于 uploadThreshold 会触发上传,单位:字节 默认为16 * 1024
2020
*/
2121
public long uploadThreshold;
2222

2323
/**
24-
* 记录文件最大值 要大于 uploadThreshold 单位:字节 默认为2 * 1024 * 1024
24+
* 记录文件最大值 要大于 uploadThreshold 单位:字节 默认为20 * 1024 * 1024
2525
*/
2626
public long maxRecordFileSize;
2727

library/src/main/java/com/qiniu/android/common/Config.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,13 @@ public final class Config {
5252
* <p>
5353
* 记录文件大于此值后暂停记录上传信息。
5454
*/
55-
public static int maxRecordFileSize = 2 * 1024 * 1024;
55+
public static int maxRecordFileSize = 20 * 1024 * 1024;
5656

5757
/**
5858
* 记录文件大于 uploadThreshold 后才可能触发上传,单位:字节。
59-
* <p>
60-
* 以 200,CwIAAF4znMnpno0U,up.qiniu.com,183.131.7.18,80,383.0,1481014578,262144 为例,
61-
* 100 条,约 7400Byte ;50 条,约 3700; 1024 约 13.8 条
62-
* <p>
63-
* chunkSize = 256 * 1024;putThreshold = 512 * 1024
64-
* 分片上传, 1M,最好情况下 5 个请求;10M,最好情况下 41 个请求
65-
* <p>
6659
* 可依据客户上传频率、文件大小做调整
6760
*/
68-
public static int uploadThreshold = 4 * 1024;
61+
public static int uploadThreshold = 16 * 1024;
6962

7063
/**
7164
* 每次上传最小时间间隔.单位:分钟

0 commit comments

Comments
 (0)