Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
627
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.94 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <yandex>
  3. <!-- Profiles of settings. -->
  4. <profiles>
  5. <!-- Default settings. -->
  6. <default>
  7. <!-- Maximum memory usage for processing single query, in bytes. -->
  8. <max_memory_usage>10000000000</max_memory_usage>
  9.  
  10. <!-- Use cache of uncompressed blocks of data. Meaningful only for processing many of very short queries. -->
  11. <use_uncompressed_cache>0</use_uncompressed_cache>
  12.  
  13. <!-- How to choose between replicas during distributed query processing.
  14. random - choose random replica from set of replicas with minimum number of errors
  15. nearest_hostname - from set of replicas with minimum number of errors, choose replica
  16. with minumum number of different symbols between replica's hostname and local hostname
  17. (Hamming distance).
  18. in_order - first live replica is choosen in specified order.
  19. -->
  20. <load_balancing>random</load_balancing>
  21. </default>
  22. <!-- Profile that allows only read queries. -->
  23. <readonly>
  24. <readonly>1</readonly>
  25. </readonly>
  26. </profiles>
  27.  
  28. <!-- Users and ACL. -->
  29. <users>
  30. <!-- If user name was not specified, 'default' user is used. -->
  31. <default>
  32. <!-- Password could be specified in plaintext or in SHA256 (in hex format).
  33.  
  34. If you want to specify password in plaintext (not recommended), place it in 'password' element.
  35. Example: <password>qwerty</password>.
  36. Password could be empty.
  37.  
  38. If you want to specify SHA256, place it in 'password_sha256_hex' element.
  39. Example: <password_sha256_hex>65e84be33532fb784c48129675f9eff3a682b27168c0ea744b2cf58ee02337c5</password_sha256_hex>
  40.  
  41. How to generate decent password:
  42. Execute: PASSWORD=$(base64 < /dev/urandom | head -c8); echo "$PASSWORD"; echo -n "$PASSWORD" | sha256sum | tr -d '-'
  43. In first line will be password and in second - corresponding SHA256.
  44. -->
  45. <password></password>
  46.  
  47. <!-- List of networks with open access.
  48.  
  49. To open access from everywhere, specify:
  50. <ip>::/0</ip>
  51.  
  52. To open access only from localhost, specify:
  53. <ip>::1</ip>
  54. <ip>127.0.0.1</ip>
  55.  
  56. Each element of list has one of the following forms:
  57. <ip> IP-address or network mask. Examples: 213.180.204.3 or 10.0.0.1/8 or 2a02:6b8::3 or 2a02:6b8::3/64.
  58. <host> Hostname. Example: server01.yandex.ru.
  59. To check access, DNS query is performed, and all received addresses compared to peer address.
  60. <host_regexp> Regular expression for host names. Example, ^server\d\d-\d\d-\d\.yandex\.ru$
  61. To check access, DNS PTR query is performed for peer address and then regexp is applied.
  62. Then, for result of PTR query, another DNS query is performed and all received addresses compared to peer address.
  63. Strongly recommended that regexp is ends with $
  64. All results of DNS requests are cached till server restart.
  65. -->
  66. <networks incl="networks" replace="replace">
  67. <ip>::/0</ip>
  68. </networks>
  69.  
  70. <!-- Settings profile for user. -->
  71. <profile>default</profile>
  72.  
  73. <!-- Quota for user. -->
  74. <quota>default</quota>
  75. </default>
  76. <web>
  77. <password>web1</password>
  78. <networks incl="networks" />
  79. <profile>web</profile>
  80. <quota>default</quota>
  81. </web>
  82. <!-- Example of user with readonly access. -->
  83. <readonly>
  84. <password>web</password>
  85. <networks incl="networks" replace="replace">
  86. <ip>::/0</ip>
  87. <ip>127.0.0.1</ip>
  88. </networks>
  89. <profile>default</profile>
  90. <quota>default</quota>
  91. </readonly>
  92. </users>
  93.  
  94. <!-- Quotas. -->
  95. <quotas>
  96. <!-- Name of quota. -->
  97. <default>
  98. <!-- Limits for time interval. You could specify many intervals with different limits. -->
  99. <interval>
  100. <!-- Length of interval. -->
  101. <duration>3600</duration>
  102.  
  103. <!-- No limits. Just calculate resource usage for time interval. -->
  104. <queries>0</queries>
  105. <errors>0</errors>
  106. <result_rows>0</result_rows>
  107. <read_rows>0</read_rows>
  108. <execution_time>0</execution_time>
  109. </interval>
  110. </default>
  111. </quotas>
  112. </yandex>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement