Skip to content

Commit

Permalink
Merge pull request #4248 from esl/add-erlang-doctor
Browse files Browse the repository at this point in the history
Add erlang doctor
  • Loading branch information
JanuszJakubiec authored Mar 21, 2024
2 parents 45a989a + 71f9e9e commit 0273b50
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 2 deletions.
1 change: 1 addition & 0 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
%%% Internal monitoring and debugging tools
{recon, "2.5.3"},
{observer_cli, "1.7.4"},
{erlang_doctor, "0.2.6"},

%%% Testing deps
{proper, "1.4.0"},
Expand Down
3 changes: 3 additions & 0 deletions rebar.lock
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
{<<"epgsql">>,{pkg,<<"epgsql">>,<<"4.7.1">>},0},
{<<"eredis">>,{pkg,<<"eredis">>,<<"1.7.0">>},0},
{<<"erl_csv">>,{pkg,<<"erl_csv">>,<<"0.3.1">>},0},
{<<"erlang_doctor">>,{pkg,<<"erlang_doctor">>,<<"0.2.6">>},0},
{<<"erlcloud">>,{pkg,<<"erlcloud">>,<<"3.6.5">>},0},
{<<"exml">>,{pkg,<<"hexml">>,<<"3.4.1">>},0},
{<<"exometer_core">>,
Expand Down Expand Up @@ -147,6 +148,7 @@
{<<"epgsql">>, <<"D4E47CAE46C18C8AFA88E34D59A9B4BAE16368D7CE1EB3DA24FA755EB28393EB">>},
{<<"eredis">>, <<"7A9B2B51ECDE73AF3399B344C6C7FA5141E6C77DF5FACE86E41E8365A1E5B08F">>},
{<<"erl_csv">>, <<"5AD1BB8093D198191384F2E96EB879B08B23F14E5F6FAD8D80BDC3EB623DE8DA">>},
{<<"erlang_doctor">>, <<"AF5C541DFDCF2B0A0340C1754090561BEEB62CBD8B714E6813DC957CDD0ED479">>},
{<<"erlcloud">>, <<"75B93168BF6F9CD4573B261D8F83FD2C89F7809AFEAAADABFA39ECE3F75F3055">>},
{<<"exml">>, <<"9581FE6512D9772C61BBE611CD4A8E5BB90B4D4481275325EC520F7A931A9393">>},
{<<"fast_pbkdf2">>, <<"4F09D6C6C20DBEE1970E0A6AE91432E1B7731F88426C671D083BAC31FFA1FDAD">>},
Expand Down Expand Up @@ -211,6 +213,7 @@
{<<"epgsql">>, <<"B6D86B7DC42C8555B1D4E20880E5099D6D6D053148000E188E548F98E4E01836">>},
{<<"eredis">>, <<"A49E7B11A2E1DF91EC3DA565DBD1A9530C95A5AC03127D3810D735F9EABF6F2E">>},
{<<"erl_csv">>, <<"21186276E59258F6F35F1CA2ECDFA995508B2E0055D502DCA1DCD09E3231F445">>},
{<<"erlang_doctor">>, <<"7756A88E2AD47A55B4E87914BA404C9481F75F1166BD91E695BCA96BBD7E036D">>},
{<<"erlcloud">>, <<"9E482E6B1C956A649AE878CBE46494BC36E6CAFA1C677B30158C0ED4BAD789E9">>},
{<<"exml">>, <<"D8E7894E2544402B4986EEB2443C15B51B14F686266F091DBF2777D1D99A2FA2">>},
{<<"fast_pbkdf2">>, <<"2900431E2E6402F23A92754448BBD949DA366BC9C984FDC791DDCFCC41042434">>},
Expand Down
2 changes: 2 additions & 0 deletions rel/fed1.vars-toml.config
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,7 @@

{mod_cache_users, ""}.

{erlang_doctor_limit, 100000}.

%% Include common vars shared by all profiles
"./vars-toml.config".
3 changes: 2 additions & 1 deletion rel/files/app.config
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@
}
}
]
}
},
{erlang_doctor, [{limit, {{erlang_doctor_limit}} }]}
%{exometer_core, [
% {mongooseim_report_interval, 60000}, %% 60 seconds
% {report, [
Expand Down
2 changes: 2 additions & 0 deletions rel/mim1.vars-toml.config
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,7 @@
{c2s_dhfile, "\"priv/ssl/fake_dh_server.pem\""}.
{s2s_dhfile, "\"priv/ssl/fake_dh_server.pem\""}.

{erlang_doctor_limit, 100000}.

%% Include common vars shared by all profiles
"./vars-toml.config".
2 changes: 2 additions & 0 deletions rel/mim2.vars-toml.config
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,7 @@
[host_config.modules.mod_presence]
[host_config.auth.dummy]"}.

{erlang_doctor_limit, 100000}.

%% Include common vars shared by all profiles
"./vars-toml.config".
3 changes: 3 additions & 0 deletions rel/mim3.vars-toml.config
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,8 @@
backend = \"{{{auth_anonymous_backend}}}\"
{{/auth_anonymous_backend}}
"}.

{erlang_doctor_limit, 100000}.

%% Include common vars shared by all profiles
"./vars-toml.config".
2 changes: 2 additions & 0 deletions rel/prod.vars-toml.config
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,7 @@
{tls_config, "tls.verify_mode = \"none\"
tls.certfile = \"priv/ssl/fake_server.pem\""}.

{erlang_doctor_limit, 1000}.

%% Include common vars shared by all profiles
"./vars-toml.config".
2 changes: 2 additions & 0 deletions rel/reg1.vars-toml.config
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,7 @@

{mod_cache_users, ""}.

{erlang_doctor_limit, 100000}.

%% Include common vars shared by all profiles
"./vars-toml.config".
2 changes: 1 addition & 1 deletion src/mongooseim.app.src
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
segmented_cache,
opuntia
]},
{included_applications, [mnesia, cets]},
{included_applications, [mnesia, cets, erlang_doctor]},
{env, []},
{mod, {ejabberd_app, []}}]}.

Expand Down

0 comments on commit 0273b50

Please sign in to comment.