Merge pull request #13112 from HJianBo/change-the-default-batch-size-s3-uploader
Fix(s3): change the batch_size to 1 for direct mode
This commit is contained in:
commit
6ec8ae5a5f
2
Makefile
2
Makefile
|
@ -21,7 +21,7 @@ endif
|
||||||
# Dashboard version
|
# Dashboard version
|
||||||
# from https://github.com/emqx/emqx-dashboard5
|
# from https://github.com/emqx/emqx-dashboard5
|
||||||
export EMQX_DASHBOARD_VERSION ?= v1.9.0-beta.1
|
export EMQX_DASHBOARD_VERSION ?= v1.9.0-beta.1
|
||||||
export EMQX_EE_DASHBOARD_VERSION ?= e1.7.0-beta.11
|
export EMQX_EE_DASHBOARD_VERSION ?= e1.7.0-beta.12
|
||||||
|
|
||||||
-include default-profile.mk
|
-include default-profile.mk
|
||||||
PROFILE ?= emqx
|
PROFILE ?= emqx
|
||||||
|
|
|
@ -238,12 +238,12 @@ convert_actions(undefined, _) ->
|
||||||
|
|
||||||
convert_action(Conf = #{<<"parameters">> := Params, <<"resource_opts">> := ResourceOpts}, _) ->
|
convert_action(Conf = #{<<"parameters">> := Params, <<"resource_opts">> := ResourceOpts}, _) ->
|
||||||
case Params of
|
case Params of
|
||||||
#{<<"mode">> := <<"direct">>} ->
|
#{<<"mode">> := <<"aggregated">>} ->
|
||||||
|
Conf;
|
||||||
|
#{} ->
|
||||||
%% NOTE: Disable batching for direct uploads.
|
%% NOTE: Disable batching for direct uploads.
|
||||||
NResourceOpts = ResourceOpts#{<<"batch_size">> => 1, <<"batch_time">> => 0},
|
NResourceOpts = ResourceOpts#{<<"batch_size">> => 1, <<"batch_time">> => 0},
|
||||||
Conf#{<<"resource_opts">> := NResourceOpts};
|
Conf#{<<"resource_opts">> := NResourceOpts}
|
||||||
#{} ->
|
|
||||||
Conf
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
%% Interpreting options
|
%% Interpreting options
|
||||||
|
|
Loading…
Reference in New Issue