You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

system.config 4.7 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. # Copyright (c) 2007-2013 Alysson Bessani, Eduardo Alchieri, Paulo Sousa, and the authors indicated in the @author tags
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. ############################################
  15. ####### Communication Configurations #######
  16. ############################################
  17. #HMAC algorithm used to authenticate messages between processes (HmacMD5 is the default value)
  18. #This parameter is not currently being used being used
  19. #system.authentication.hmacAlgorithm = HmacSHA1
  20. #Specify if the communication system should use a thread to send data (true or false)
  21. system.communication.useSenderThread = true
  22. #Force all processes to use the same public/private keys pair and secret key. This is useful when deploying experiments
  23. #and benchmarks, but must not be used in production systems.
  24. system.communication.defaultkeys = true
  25. ############################################
  26. ### Replication Algorithm Configurations ###
  27. ############################################
  28. #Number of servers in the group
  29. system.servers.num = 4
  30. #Maximum number of faulty replicas
  31. system.servers.f = 1
  32. #Timeout to asking for a client request
  33. system.totalordermulticast.timeout = 2000
  34. #Maximum batch size (in number of messages)
  35. system.totalordermulticast.maxbatchsize = 400
  36. #Number of nonces (for non-determinism actions) generated
  37. system.totalordermulticast.nonces = 10
  38. #if verification of leader-generated timestamps are increasing
  39. #it can only be used on systems in which the network clocks
  40. #are synchronized
  41. system.totalordermulticast.verifyTimestamps = false
  42. #Quantity of messages that can be stored in the receive queue of the communication system
  43. system.communication.inQueueSize = 500000
  44. # Quantity of messages that can be stored in the send queue of each replica
  45. system.communication.outQueueSize = 500000
  46. #Set to 1 if SMaRt should use signatures, set to 0 if otherwise
  47. system.communication.useSignatures = 0
  48. #Set to 1 if SMaRt should use MAC's, set to 0 if otherwise
  49. system.communication.useMACs = 1
  50. #Set to 1 if SMaRt should use the standard output to display debug messages, set to 0 if otherwise
  51. system.debug = 0
  52. #Print information about the replica when it is shutdown
  53. system.shutdownhook = true
  54. ############################################
  55. ###### State Transfer Configurations #######
  56. ############################################
  57. #Activate the state transfer protocol ('true' to activate, 'false' to de-activate)
  58. system.totalordermulticast.state_transfer = true
  59. #Maximum ahead-of-time message not discarded
  60. system.totalordermulticast.highMark = 10000
  61. #Maximum ahead-of-time message not discarded when the replica is still on EID 0 (after which the state transfer is triggered)
  62. system.totalordermulticast.revival_highMark = 10
  63. #Number of ahead-of-time messages necessary to trigger the state transfer after a request timeout occurs
  64. system.totalordermulticast.timeout_highMark = 200
  65. ############################################
  66. ###### Log and Checkpoint Configurations ###
  67. ############################################
  68. system.totalordermulticast.log = true
  69. system.totalordermulticast.log_parallel = false
  70. system.totalordermulticast.log_to_disk = false
  71. system.totalordermulticast.sync_log = false
  72. #Period at which BFT-SMaRt requests the state to the application (for the state transfer state protocol)
  73. system.totalordermulticast.checkpoint_period = 1000
  74. system.totalordermulticast.global_checkpoint_period = 120000
  75. system.totalordermulticast.checkpoint_to_disk = false
  76. system.totalordermulticast.sync_ckp = false
  77. ############################################
  78. ###### Reconfiguration Configurations ######
  79. ############################################
  80. #Replicas ID for the initial view, separated by a comma.
  81. # The number of replicas in this parameter should be equal to that specified in 'system.servers.num'
  82. system.initial.view = 0,1,2,3
  83. #The ID of the trust third party (TTP)
  84. system.ttp.id = 7002
  85. #This sets if the system will function in Byzantine or crash-only mode. Set to "true" to support Byzantine faults
  86. system.bft = true
  87. #Custom View Storage;
  88. #view.storage.handler=bftsmart.reconfiguration.views.DefaultViewStorage

一个面向企业应用场景的通用区块链框架系统,能够作为企业级基础设施,为业务创新提供高效、灵活和安全的解决方案