Forráskód Böngészése

Add 'mqtt.conn.force_gc_count' config to tune GC of MQTT connection

Feng Lee 9 éve
szülő
commit
124aa454fb
2 módosított fájl, 16 hozzáadás és 0 törlés
  1. 7 0
      etc/emq.conf
  2. 9 0
      priv/emq.schema

+ 7 - 0
etc/emq.conf

@@ -106,6 +106,13 @@ mqtt.max_clientid_len = 1024
 ## Max Packet Size Allowed, 64K by default.
 mqtt.max_packet_size = 64KB
 
+##--------------------------------------------------------------------
+## MQTT Connection
+##--------------------------------------------------------------------
+
+## Force GC: pos_integer
+mqtt.conn.force_gc_count = 100
+
 ##--------------------------------------------------------------------
 ## MQTT Client
 ##--------------------------------------------------------------------

+ 9 - 0
priv/emq.schema

@@ -316,6 +316,15 @@ end}.
    {max_packet_size,  cuttlefish:conf_get("mqtt.max_packet_size", Conf)}]
 end}.
 
+%%--------------------------------------------------------------------
+%% MQTT Connection
+%%--------------------------------------------------------------------
+
+%% @doc Force the client to GC: integer
+{mapping, "mqtt.conn.force_gc_count", "emqttd.conn_force_gc_count", [
+  {datatype, integer}
+]}.
+
 %%--------------------------------------------------------------------
 %% MQTT Client
 %%--------------------------------------------------------------------