emqx/rel/i18n
Thales Macedo Garitezi 10425eb925 feat(resource): deprecate auto_restart_interval in favor of health_check_interval
See:
https://emqx.atlassian.net/wiki/spaces/P/pages/612368639/open+e5.1+remove+auto+restart+interval+from+buffer+worker+resource+options

Current problem:

In 5.0.x, we have two timer options that control the state changing of buffer worker
resources: auto_restart_interval and health_check_interval.

- auto_restart_interval controls how often the resource attempts to transition from
disconnected to connected.

- health_check_interval controls how often the resource is checked and potentially moved
from connected to disconnected or connecting.

The existence of two independent timers for very similar purposes is confusing to users,
QA and even developers.  Also, an intimately related configuration is request_timeout,
which can interact badly with auto_restart_interval if the latter is poorly configured:
requests may always expire if request_timeout < auto_restart_interval and if the resource
enters the disconnected state.  For health_check_interval, we attempt to derive a sane
default that gives requests a chance to retry (if request timeout is finite, then the
resource retries requests with a period of min(health_check_interval, request_timeout /
3).

Another problem with the separate auto_restart_interval is that its default value (60 s)
is too high when compared to the default request timeout and health check, leading to the
problems described above if not tuned.

Proposed solution:

We propose to drop auto_restart_interval in favor of health_check_interval, which will be
used for both disconnected -> connected and connected -> {disconnected, connecting}
transition checks.  With that, the resource will attempt to reconnect at the same interval
as the health check, which currently is 15 s.

Also, as two smaller changes to accompany this one:

- Increase the default request_timeout from 15 s to 45 s.
- Rename request_timeout to request_ttl.
2023-06-01 11:20:06 -03:00
..
emqx_authn_api.hocon docs: make sure there is a summary for all API endpoints 2023-05-17 09:58:56 +02:00
emqx_authn_http.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_authn_jwt.hocon docs: update doc refs 2023-04-18 09:48:28 +02:00
emqx_authn_mnesia.hocon docs: update doc refs 2023-04-18 09:48:28 +02:00
emqx_authn_mongodb.hocon docs: update doc refs 2023-04-18 09:48:28 +02:00
emqx_authn_mysql.hocon docs: update doc refs 2023-04-18 09:48:28 +02:00
emqx_authn_pgsql.hocon docs: update doc refs 2023-04-18 09:48:28 +02:00
emqx_authn_redis.hocon docs: update doc refs 2023-04-18 09:48:28 +02:00
emqx_authn_schema.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_authn_user_import_api.hocon docs: make sure there is a summary for all API endpoints 2023-05-17 09:58:56 +02:00
emqx_authz_api_cache.hocon docs: make sure there is a summary for all API endpoints 2023-05-17 09:58:56 +02:00
emqx_authz_api_mnesia.hocon docs: make sure there is a summary for all API endpoints 2023-05-17 09:58:56 +02:00
emqx_authz_api_schema.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_authz_api_settings.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_authz_api_sources.hocon docs: make sure there is a summary for all API endpoints 2023-05-17 09:58:56 +02:00
emqx_authz_schema.hocon docs: update doc refs 2023-04-18 09:48:28 +02:00
emqx_auto_subscribe_api.hocon docs: make sure there is a summary for all API endpoints 2023-05-17 09:58:56 +02:00
emqx_auto_subscribe_schema.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_bridge_api.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_bridge_cassandra_connector.hocon chore: rename cassandra_impl to cassandra_connector 2023-04-21 16:49:25 +08:00
emqx_bridge_cassandra.hocon refactor(cassandra): move cassandra bridge into its own app 2023-04-21 14:45:38 +08:00
emqx_bridge_clickhouse_connector.hocon refactor: the clickhouse bridge to use the new bridge app structure 2023-05-17 10:12:43 +02:00
emqx_bridge_clickhouse.hocon refactor: the clickhouse bridge to use the new bridge app structure 2023-05-17 10:12:43 +02:00
emqx_bridge_dynamo_connector.hocon refactor(dynamo): move dynamo bridge into its own app 2023-05-10 18:49:21 +08:00
emqx_bridge_dynamo.hocon refactor(dynamo): move dynamo bridge into its own app 2023-05-10 18:49:21 +08:00
emqx_bridge_gcp_pubsub.hocon refactor(gcp_pubsub): move GCP PubSub Bridge to its own app 2023-04-19 13:24:32 -03:00
emqx_bridge_influxdb_connector.hocon refactor(influxdb): move influxdb bridge into its own app 2023-05-12 11:48:49 +08:00
emqx_bridge_influxdb.hocon refactor(influxdb): move influxdb bridge into its own app 2023-05-12 11:48:49 +08:00
emqx_bridge_iotdb.hocon feat: add IotDB bridge 2023-05-08 16:19:01 +02:00
emqx_bridge_kafka.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_bridge_mqtt_connector_schema.hocon fix(mqttbridge): clarify schema descriptions + log messages 2023-05-30 22:21:22 +03:00
emqx_bridge_mqtt_schema.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_bridge_opents_connector.hocon chore: make spellcheck and xref happy 2023-04-23 11:22:56 +08:00
emqx_bridge_opents.hocon feat(opents): OpenTSDB integration 2023-04-23 09:56:24 +08:00
emqx_bridge_oracle.hocon fix(oracle): replace 'database' field by 'service name' 2023-05-24 15:40:56 -03:00
emqx_bridge_pgsql.hocon refactor(pgsql): move pgsql && matrix && timescale bridges into their own app 2023-05-10 16:51:33 +08:00
emqx_bridge_pulsar.hocon feat(pulsar): improve authn error check time and add connect timeout 2023-05-22 11:33:16 -03:00
emqx_bridge_rabbitmq_connector.hocon feat: add RabbitMQ bridge 2023-05-09 14:32:26 +02:00
emqx_bridge_rabbitmq.hocon feat: add RabbitMQ bridge 2023-05-09 14:32:26 +02:00
emqx_bridge_rocketmq_connector.hocon refactor(rocketmq): move rocketmq bridge into its own app 2023-05-09 15:57:56 +08:00
emqx_bridge_rocketmq.hocon refactor(rocketmq): move rocketmq bridge into its own app 2023-05-09 15:57:56 +08:00
emqx_bridge_schema.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_bridge_sqlserver_connector.hocon refactor(sqlserver): move sqlserver bridge into its own app 2023-05-06 10:22:05 +08:00
emqx_bridge_sqlserver.hocon refactor(sqlserver): move sqlserver bridge into its own app 2023-05-06 10:22:05 +08:00
emqx_bridge_tdengine_connector.hocon refactor(tdengine): move tdengine bridge into its own app 2023-05-10 14:12:57 +08:00
emqx_bridge_tdengine.hocon refactor(tdengine): move tdengine bridge into its own app 2023-05-10 14:12:57 +08:00
emqx_bridge_webhook_schema.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_coap_api.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_coap_schema.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_conf_schema.hocon Merge remote-tracking branch 'origin/release-50' into 0502-merge-release-50-back-to-master 2023-05-02 18:08:04 +02:00
emqx_connector_api.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_connector_http.hocon refactor: delete unused connector field 'base_url' 2023-05-11 09:04:55 +02:00
emqx_connector_ldap.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_connector_mongo.hocon docs: better max_overflow field label and description for MongoDB bridge 2023-05-03 17:49:08 +02:00
emqx_connector_mysql.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_connector_pgsql.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_connector_redis.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_connector_schema_lib.hocon docs: clarify description of bridge username and password 2023-05-15 16:29:52 +02:00
emqx_dashboard_api.hocon docs: make sure there is a summary for all API endpoints 2023-05-17 09:58:56 +02:00
emqx_dashboard_error_code_api.hocon docs: make sure there is a summary for all API endpoints 2023-05-17 09:58:56 +02:00
emqx_dashboard_monitor_api.hocon docs: make sure there is a summary for all API endpoints 2023-05-17 09:58:56 +02:00
emqx_dashboard_schema.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_delayed_api.hocon docs: make sure there is a summary for all API endpoints 2023-05-17 09:58:56 +02:00
emqx_ee_bridge_hstreamdb.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_ee_bridge_mongodb.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_ee_bridge_mysql.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_ee_bridge_redis.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_ee_connector_hstreamdb.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_ee_schema_registry_http_api.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_ee_schema_registry_schema.hocon feat(schema_registry): add support for protobuf schemas 2023-04-17 13:04:54 -03:00
emqx_eviction_agent_api.hocon chore(rebalance): rebase and review fixes 2023-05-09 20:51:24 +05:00
emqx_exhook_api.hocon docs: make sure there is a summary for all API endpoints 2023-05-17 09:58:56 +02:00
emqx_exhook_schema.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_exproto_schema.hocon fix: keep the real closed_reason 2023-05-31 13:44:51 +08:00
emqx_ft_api.hocon fix: can't get file_list_transfer desc cause 500 error on /swagger.json api 2023-05-22 15:17:50 +08:00
emqx_ft_schema.hocon fix(ft-schema): make description more natural 2023-05-16 16:27:33 +03:00
emqx_gateway_api_authn.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_gateway_api_clients.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_gateway_api_listeners.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_gateway_api.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_gateway_schema.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_license_http_api.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_license_schema.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_limiter_schema.hocon refactor(limiter): simplify limiter configuration 2023-05-08 11:45:49 +08:00
emqx_lwm2m_api.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_lwm2m_schema.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_mgmt_api_alarms.hocon docs: make sure there is a summary for all API endpoints 2023-05-17 09:58:56 +02:00
emqx_mgmt_api_api_keys.hocon docs: make sure there is a summary for all API endpoints 2023-05-17 09:58:56 +02:00
emqx_mgmt_api_banned.hocon docs: make sure there is a summary for all API endpoints 2023-05-17 09:58:56 +02:00
emqx_mgmt_api_clients.hocon feat: support kickout clients in batch 2023-05-30 19:58:40 +08:00
emqx_mgmt_api_cluster.hocon docs: make sure there is a summary for all API endpoints 2023-05-17 09:58:56 +02:00
emqx_mgmt_api_configs.hocon fix: zones api default value 2023-05-26 18:59:38 +08:00
emqx_mgmt_api_key_schema.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_mgmt_api_listeners.hocon docs: make sure there is a summary for all API endpoints 2023-05-17 09:58:56 +02:00
emqx_mgmt_api_metrics.hocon docs: make sure there is a summary for all API endpoints 2023-05-17 09:58:56 +02:00
emqx_mgmt_api_nodes.hocon docs: make sure there is a summary for all API endpoints 2023-05-17 09:58:56 +02:00
emqx_mgmt_api_publish.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_mgmt_api_stats.hocon docs: make sure there is a summary for all API endpoints 2023-05-17 09:58:56 +02:00
emqx_mgmt_api_status.hocon docs: fix a typo in api doc description 2023-05-04 10:50:14 +02:00
emqx_mgmt_api_subscriptions.hocon docs: make sure there is a summary for all API endpoints 2023-05-17 09:58:56 +02:00
emqx_mgmt_api_topics.hocon docs: make sure there is a summary for all API endpoints 2023-05-17 09:58:56 +02:00
emqx_mgmt_api_trace.hocon docs: make sure there is a summary for all API endpoints 2023-05-17 09:58:56 +02:00
emqx_modules_schema.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_mqttsn_schema.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_node_rebalance_api.hocon docs: refine zh tr 2023-05-09 20:51:24 +05:00
emqx_oracle.hocon fix(oracle): replace 'database' field by 'service name' 2023-05-24 15:40:56 -03:00
emqx_plugins_schema.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_prometheus_api.hocon docs: make sure there is a summary for all API endpoints 2023-05-17 09:58:56 +02:00
emqx_prometheus_schema.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_psk_schema.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_resource_schema.hocon feat(resource): deprecate auto_restart_interval in favor of health_check_interval 2023-06-01 11:20:06 -03:00
emqx_retainer_api.hocon docs: make sure there is a summary for all API endpoints 2023-05-17 09:58:56 +02:00
emqx_retainer_schema.hocon feat(retainer): add a field deliver_rate to limit the maximum delivery rate 2023-05-31 09:44:25 +08:00
emqx_rewrite_api.hocon docs: make sure there is a summary for all API endpoints 2023-05-17 09:58:56 +02:00
emqx_rule_api_schema.hocon docs: improve rule engine labels and descriptions 2023-05-09 11:44:30 +02:00
emqx_rule_engine_api.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_rule_engine_schema.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_s3_schema.hocon feat(ft): convert hocon files to the new format 2023-04-21 19:14:24 +03:00
emqx_schema.hocon Merge remote-tracking branch 'emqx/release-50' into merge-release-50 2023-05-24 19:34:12 +08:00
emqx_slow_subs_api.hocon docs: make sure there is a summary for all API endpoints 2023-05-17 09:58:56 +02:00
emqx_slow_subs_schema.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_stomp_schema.hocon refactor: Split i18n files 2023-04-17 13:35:33 +02:00
emqx_telemetry_api.hocon docs: make sure there is a summary for all API endpoints 2023-05-17 09:58:56 +02:00
emqx_telemetry_schema.hocon docs: fix spellcheck for telemetry app 2023-05-26 08:44:19 +02:00
emqx_topic_metrics_api.hocon docs: make sure there is a summary for all API endpoints 2023-05-17 09:58:56 +02:00