Guest User

Untitled

a guest
Jun 28th, 2021
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.04 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. interval: 1000
  24. # The total amount of connections to be spawned, starting from 1.
  25. capacity: 10
  26. # A path to a certificate file. The file MUST contain both a full certficate chain and a private key in PEM format.
  27. # The option is only mandatory in the case when your scenario is configured to utilize TLS connections.
  28. certfile: cert.pem
  29.  
  30. ### Mandatory options for XMPP scenario
  31. jid: test_%@domain.it
  32. password: cambiami
  33.  
  34.  
  35.  
  36. ### Server addresses
  37. ### Optional, but highly recommended to set
  38. servers:
  39. - tcp://46.44.250.184:5222
  40. ##- tcp://127.0.0.1:5222
  41. ### - tcp://192.168.1.1:5222
  42.  
  43. ### An HTTP port for the statistics web interface
  44. www_port: 8081
  45.  
  46. # 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.
  47. debug: false
  48.  
  49. # 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.
  50. #message_interval: 60
  51.  
  52. ### Local Variables:
  53. ### mode: yaml
  54. ### End:
  55. ### vim: set filetype=yaml tabstop=8
  56.  
  57. #message_to: [email protected]
  58.  
  59.  
  60. ## Parameters for timings control.
  61.  
  62. # 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.
  63. negotiation_timeout: 100
  64.  
  65. # 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.
  66. connect_timeout: 100
  67.  
  68. # 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.
  69. reconnect_interval: 60
  70.  
  71. # 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.
  72. message_interval: 600
  73.  
  74. # 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.
  75. muc_message_interval: 600
  76.  
  77. # 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.
  78. presence_interval: 600
  79.  
  80. #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.
  81. disconnect_interval: 600
  82.  
  83. # 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.
  84. # proxy65_interval: 600
  85. proxy65_interval: false
  86.  
  87. # 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.
  88. # http_upload_interval: 600
  89. http_upload_interval: false
  90.  
  91.  
  92. ## Parameters for payload/size control
  93.  
  94. # 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.
  95. message_to: [email protected]
  96.  
  97. # 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.
  98. message_body_size: 100
  99.  
  100. # 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).
  101. #proxy65_size: 10485760
  102.  
  103. # 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.
  104. #http_upload_size:
  105.  
  106.  
  107. # 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).
  108. mam_size: 50
  109.  
  110. # 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).
  111. muc_mam_size: 50
  112.  
  113.  
  114. ## Parameters for enabling/disabling features
  115.  
  116. # Whether to use STARTTLS or not. The default is true.
  117. starttls: true
  118.  
  119. # Whether to send client state indications or not (XEP-0352). The default is true.
  120. csi: true
  121.  
  122. # Whether to enable stream management with resumption or not (XEP-0198). The default is true.
  123. sm: true
  124.  
  125. # 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.
  126. mam: true
  127.  
  128. # 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.
  129. muc_mam: true
  130.  
  131. # Whether to enable message carbons or not (XEP-0280). The default is true.
  132. carbons: true
  133.  
  134. # Whether to request block list at login time or not (XEP-0191). The default is true.
  135. blocklist: true
  136.  
  137. # Whether to request roster at login time or not. The default is true.
  138. roster: true
  139.  
  140. # Whether to set a roster version attribute in roster request or not. The default is true.
  141. rosterver: true
  142.  
  143. # Whether to request bookmarks from private storage at login time or not (XEP-0049). The default is true.
  144. private: true
  145.  
  146.  
  147. ## Miscellaneous parameters
  148.  
  149. # 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.
  150. muc_rooms:
  151.  
  152. # 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.
  153.  
  154. #sasl_mechanisms:
  155.  
  156.  
  157. ~
  158.  
  159.  
  160.  
Advertisement
Add Comment
Please, Sign In to add comment