Advertisement
Guest User

Untitled

a guest
Sep 13th, 2021
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.18 KB | None | 0 0
  1. ###
  2. ### RTB configuration file
  3. ###
  4. ### The parameters used in this configuration file are explained at
  5. ###
  6. ### https://github.com/processone/rtb/blob/master/README.md
  7. ###
  8. ### The configuration file is written in YAML
  9. ###
  10. ### *******************************************************
  11. ### ******* !!! WARNING !!! *******
  12. ### ******* YAML IS INDENTATION SENSITIVE *******
  13. ### ******* MAKE SURE YOU INDENT SECTIONS CORRECTLY *******
  14. ### *******************************************************
  15. ###
  16.  
  17. ### Mandatory options: common for all scenarios
  18.  
  19. # The benchmarking scenario to use. Available values are mqtt and xmpp.
  20. scenario: xmpp
  21. # The option is used to set a timeout to wait before spawning the next connection. The value is in milliseconds.
  22. interval: 20
  23. # The total amount of connections to be spawned, starting from 1.
  24. capacity: 20000
  25. # A path to a certificate file. The file MUST contain both a full certficate chain and a private key in PEM format.
  26. # The option is only mandatory in the case when your scenario is configured to utilize TLS connections.
  27. certfile: cert.pem
  28.  
  29. ### Mandatory options for XMPP scenario
  30. #jid: test_%@wh-ejabberd-5.vianova.it
  31. #password: ????
  32.  
  33.  
  34. #jid: zchat.test_%#[email protected]
  35. jid: test_%@wh-ejabberd-5.vianova.it
  36. password: ????
  37.  
  38.  
  39.  
  40.  
  41. ### Server addresses
  42. ### Optional, but highly recommended to set
  43. servers:
  44. - tcp://11.11.111.111:5222
  45.  
  46. ### An HTTP port for the statistics web interface
  47. www_port: 8080
  48.  
  49. # Whether to log debug messages or not. This is only needed to track down issues of the server or the tool itself. DON'T enable in large scale benchmarking. The default is false.
  50. debug: false
  51.  
  52. # An interval between sending messages. The value is in seconds. It can be set to false to disable sending messages completely. The default is 600 (10 minutes). See also message_body_size option.
  53. #message_interval: 60
  54.  
  55. ### Local Variables:
  56. ### mode: yaml
  57. ### End:
  58. ### vim: set filetype=yaml tabstop=8
  59.  
  60.  
  61. ## Parameters for timings control.
  62.  
  63. # A timeout to wait for a stream negotiation to complete. The value is in seconds. It can be set to false to disable timeout. The default is 100 seconds.
  64. negotiation_timeout: 100
  65.  
  66. # A timeout to wait for a TCP connection to be established. The value is in seconds. It can be set to false to disable timeout. The default is 100 seconds.
  67. connect_timeout: 100
  68.  
  69. # A timeout to wait before another reconnection attempt after previous connection failure. Initially it is picked randomly between 1 and this configured value. Then, exponential back off is applied between several consecutive connection failures. The value is in seconds. It can be set to false to disable reconnection attempts completely: thus the failed session will never be restored. The default is 60 (1 minute) - the value recommended by RFC6120.
  70. reconnect_interval: 60
  71. #reconnect_interval: false
  72.  
  73. # An interval between sending messages. The value is in seconds. It can be set to false to disable sending messages completely. The default is 600 (10 minutes). See also message_body_size option.
  74. message_interval: 60
  75. #message_interval: false
  76.  
  77. # An interval between sending groupchat messages. The value is in seconds. It can be set to false to disable sending groupchat messages completely. The default is 600 (10 minutes). If there are several MUC rooms configured, the groupchat message is sent to a randomly chosen one, i.e. RTB doesn't multicast the message to all joined rooms. See also message_body_size and muc_rooms options. The option doesn't have any effect if muc_rooms option is not set.
  78. muc_message_interval: 60
  79. #muc_message_interval: false
  80.  
  81. # An interval between sending presence broadcats. The value is in seconds. It can be set to false to disable sending presences completely. The default is 600 (10 minutes). Note that at the first successful login a presence broadcast is always sent unless the value is not set to false.
  82. presence_interval: 600
  83.  
  84. #An interval to wait before forcing disconnect. The value is in seconds. The default is 600 (10 minutes). If stream management is enabled (this is the default, see sm option), then the session will be resumed after a random timeout between 1 and the value of max attribute of <enabled/> element reported by the server. Otherwise, the next reconnection attempt will be performed according to the value and logic of reconnect_interval.
  85. #disconnect_interval: 600
  86. disconnect_interval: false
  87.  
  88. # An interval between file transfers via Proxy65 service (XEP-0065). The value is in seconds. It can be set to false to disable file transfer completely. The default is 600 (10 minutes). See also proxy65_size option.
  89. # proxy65_interval: 600
  90. proxy65_interval: false
  91.  
  92. # An interval between file uploads via HTTP Upload service (XEP-0363). The value is in seconds. It can be set to false to disable file uploads completely. The default is 600 (10 minutes). See also http_upload_size option.
  93. #http_upload_interval: 1800 #30m
  94. http_upload_interval: false
  95.  
  96.  
  97. ## Parameters for payload/size control
  98.  
  99. # The pattern of a JID to which messages will be sent. By default a random JID within benchmark capacity is picked (whether it is already connected or not). Refer to Patterns section for the detailed explanation of possible pattern values.
  100. message_to: [email protected]
  101.  
  102.  
  103. # The size of <body/> element of a message in bytes. Only makes sense when message_interval is not set to false. The default is 100 bytes.
  104. message_body_size: 100
  105.  
  106. # The size of a file to transfer via Proxy65 service in bytes. Only makes sense when proxy65_interval is not set to false. The default is 10485760 (10 megabytes).
  107. #proxy65_size: 10485760
  108.  
  109. # The size of a file to upload via HTTP Upload service in bytes. Only makes sense when http_upload_interval is not set to false. There is no default value: the option is only needed to set if the service doesn't report its maximum file size.
  110. http_upload_size: 16000000 #16MB
  111.  
  112.  
  113. # The size of the MAM archive to request from the server. Only makes sense when mam is not set to false. The default is 50 (messages).
  114. mam_size: 100
  115.  
  116. # The size of the MAM archive to request from MUC rooms. Only makes sense when muc_mam is not set to false. The default is 50 (messages).
  117. muc_mam_size: 100
  118.  
  119.  
  120. ## Parameters for enabling/disabling features
  121.  
  122. # Whether to use STARTTLS or not. The default is true.
  123. starttls: true
  124.  
  125. # Whether to send client state indications or not (XEP-0352). The default is true.
  126. csi: true
  127.  
  128. # Whether to enable stream management with resumption or not (XEP-0198). The default is true.
  129. sm: true
  130.  
  131. # Whether to enable MAM and request MAM archives at login time or not (XEP-0313). The default is true. The requested size of the archive is controlled by mam_size option.
  132. mam: true
  133.  
  134. # Whether to request MAM archives from MUC room or not (XEP-0313). The default is true. The requested size of the archive is controlled by muc_mam_size option.
  135. muc_mam: true
  136.  
  137. # Whether to enable message carbons or not (XEP-0280). The default is true.
  138. carbons: true
  139.  
  140. # Whether to request block list at login time or not (XEP-0191). The default is true.
  141. blocklist: true
  142.  
  143. # Whether to request roster at login time or not. The default is true.
  144. #roster: false
  145. roster: true
  146.  
  147. # Whether to set a roster version attribute in roster request or not. The default is true.
  148. #rosterver: true
  149. rosterver: false
  150.  
  151. # Whether to request bookmarks from private storage at login time or not (XEP-0049). The default is true.
  152. private: true
  153.  
  154.  
  155. ## Miscellaneous parameters
  156.  
  157. # A list of MUC room bare JIDs to join, expressed as a pattern. Refer to Patterns section for the detailed explanation of possible pattern values. The default value is an empty list which means no rooms will be joined.
  158. muc_rooms:
  159. - chat_pubblica@????.???
  160.  
  161. # A list of SASL mechanisms to use for authentication. Supported mechanisms are PLAIN and EXTERNAL. The appropriate mechanism will be picked automatically. If several mechanisms found matching then all of them will be tried in the order defined by the value until the authentication is succeed. The default is [PLAIN]. Note that for EXTERNAL authentication you need to have a valid certificate file defined in the certfile option.
  162.  
  163. #sasl_mechanisms:
  164.  
  165.  
  166.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement