2018-10-18 22:42:27 +08:00
|
|
|
|
akka {
|
|
|
|
|
actor {
|
|
|
|
|
warn-about-java-serializer-usage = off//关闭Java序列化来序列化消息时的警告,建议不要开启。如果开启,开启值=on
|
|
|
|
|
default-mailbox {
|
|
|
|
|
//akka默认邮箱的选择,默认配置是akka.dispatch.SingleConsumerOnlyUnboundedMailbox,这是一个多生产者单消费者队列。建议不要修改此参数
|
|
|
|
|
mailbox-type = "akka.dispatch.SingleConsumerOnlyUnboundedMailbox"
|
|
|
|
|
}
|
|
|
|
|
default-dispatcher{
|
|
|
|
|
//akka dispatcher 配置,采用akka的默认的fork-join-executor,建议不要修改。
|
|
|
|
|
parallelism-min =10 //最小的线程数
|
|
|
|
|
parallelism-factor = 3.0 //并行因子配置
|
|
|
|
|
parallelism-max = 120 //最大的线程数
|
|
|
|
|
throughput = 5
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// cluster {
|
|
|
|
|
// //种子节点的配置,在单机单节点的情况下需要配置种子节点的信息
|
|
|
|
|
// seed-nodes = ["akka.ssl.tcp://Repchain@192.168.100.93:8082"]
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
#remote.netty.tcp.port=0
|
|
|
|
|
// remote.netty.ssl.port = 0
|
|
|
|
|
remote {
|
|
|
|
|
//远程相关的配置
|
|
|
|
|
netty.ssl {
|
|
|
|
|
//在单机单节点的情况下配置机器ip
|
|
|
|
|
// hostname=192.168.100.93
|
|
|
|
|
//在单机单节点的情况下需要配置具体的端口;在单机多节点的情况下直接配置为0
|
|
|
|
|
port = 0
|
|
|
|
|
// port=8082//0,automatic assign
|
|
|
|
|
//internal (bind) hostname
|
|
|
|
|
// bind-hostname=192.168.1.129
|
|
|
|
|
// bind-port=8082
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
netty.ssl.security {
|
|
|
|
|
//基础路径,证书的存放路径,建议不要修改
|
|
|
|
|
base-path = "jks/"
|
|
|
|
|
//名称前缀,证书的名称前缀,不要修改
|
2019-03-15 09:04:03 +08:00
|
|
|
|
base-name = ""
|
2018-10-18 22:42:27 +08:00
|
|
|
|
//证书的别名,需要跟节点的名称要保持一致
|
2019-03-15 09:04:03 +08:00
|
|
|
|
alias = "121000005l35120456.node1"
|
|
|
|
|
|
2018-10-18 22:42:27 +08:00
|
|
|
|
//用户ca文件密码
|
|
|
|
|
key-store-password = "123"
|
|
|
|
|
//用户证书密码
|
|
|
|
|
key-password = "123"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
akka.http {
|
|
|
|
|
//akka 与http服务相关的配置
|
|
|
|
|
idle-timeout = 100s//一个空闲连接超时时间配置,当空闲连接超时之后,将被自动关闭
|
|
|
|
|
server {
|
|
|
|
|
server-header = akka-http/${akka.http.version}//http服务头,建议不要修改
|
|
|
|
|
idle-timeout = 100s//空闲连接超时时间,超时将自动关闭连接
|
|
|
|
|
request-timeout = 100s //请求对超时时间
|
|
|
|
|
max-connections = 1024//最大对连接数
|
|
|
|
|
}
|
|
|
|
|
client {
|
|
|
|
|
idle-timeout = 100s //空闲连接超时时间,超时将自动关闭
|
|
|
|
|
connecting-timeout = 100s//建立连接对超时时间
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
system {
|
|
|
|
|
//api是否开启
|
|
|
|
|
//如果是单机多节点测试模式(Repchain,则选择0,默认节点1会开启)
|
|
|
|
|
ws_enable = 1//api 0,不开启;1,开启
|
|
|
|
|
//交易生产方式
|
2019-03-25 14:16:41 +08:00
|
|
|
|
trans_create_type = 1 //0,手动;1,自动
|
2018-10-18 22:42:27 +08:00
|
|
|
|
//是否进行TPS测试
|
|
|
|
|
statistic_enable = 0 // 0,unable;able
|
|
|
|
|
|
|
|
|
|
httpServicePort = 8081//http服务的端口号,默认为8081
|
|
|
|
|
|
|
|
|
|
checkCertValidate = 0//设置是否检查证书的有效性,默认为0 0=不校验,1=校验
|
|
|
|
|
|
2019-03-23 08:27:53 +08:00
|
|
|
|
contractOperationMode = 1//设置合约的运行方式,0=debug方式,1=deploy,默认为debug方式,如果发布部署,必须使用deploy方式。
|
2018-10-18 22:42:27 +08:00
|
|
|
|
|
|
|
|
|
block {
|
|
|
|
|
//块内交易的最大数量
|
|
|
|
|
trans_num_limit = 80
|
|
|
|
|
//块内交易标准最小数量
|
2019-01-16 11:19:50 +08:00
|
|
|
|
trans_num_min = 1
|
2018-10-18 22:42:27 +08:00
|
|
|
|
//交易数量不足,重试次数
|
|
|
|
|
retry_time = 10
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
vote {
|
|
|
|
|
//最低投票人数量
|
|
|
|
|
vote_note_min = 4
|
2018-10-31 16:37:56 +08:00
|
|
|
|
//参与共识的节点别名
|
2019-03-17 16:33:15 +08:00
|
|
|
|
vote_node_list = ["121000005l35120456.node1","12110107bi45jh675g.node2",
|
|
|
|
|
"122000002n00123567.node3","921000005k36123789.node4","921000006e0012v696.node5"]
|
2019-03-15 09:04:03 +08:00
|
|
|
|
}
|
|
|
|
|
account{
|
2019-03-20 14:55:08 +08:00
|
|
|
|
chaincodename = "ContractCert"//账户管理合约的名称
|
2019-03-17 16:33:15 +08:00
|
|
|
|
chaincodeversion = 1
|
2018-10-18 22:42:27 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
diskspaceManager{
|
|
|
|
|
diskspacealarm = 5000//磁盘最少空间大小,单位M ,小于这个值系统将不能启动。
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
transaction {
|
|
|
|
|
//辅助自动创建交易的间隔
|
2019-03-22 14:32:25 +08:00
|
|
|
|
tran_create_dur = 500 //millis
|
2018-10-18 22:42:27 +08:00
|
|
|
|
//最大交易缓存量
|
2018-10-31 16:37:56 +08:00
|
|
|
|
max_cache_num = 60000
|
2018-10-18 22:42:27 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
cluster {
|
|
|
|
|
//节点入网稳定时间
|
|
|
|
|
node_stable_delay = 5000 //millis
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
time {
|
|
|
|
|
//通用稳定延迟
|
|
|
|
|
stable_time_dur = 5000 //millis,确保block模块能够接收到confirm的块数据
|
|
|
|
|
|
|
|
|
|
block {
|
|
|
|
|
//投票选举重试间隔
|
|
|
|
|
vote_retry_delay = 100
|
|
|
|
|
//投票重试无果后等待时间
|
|
|
|
|
//waiting_delay = 3600000
|
|
|
|
|
waiting_delay = 360
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//超时策略:1,手动;0,自动
|
2018-10-23 21:38:20 +08:00
|
|
|
|
timeout_policy_type = 1
|
2018-10-18 22:42:27 +08:00
|
|
|
|
|
|
|
|
|
timeout {
|
|
|
|
|
//Unit : Second 以下的超时时间一般采用默认配置
|
|
|
|
|
//For auto 自动采用的超时时间
|
|
|
|
|
base_preload = 30//交易预执行的超时时间,单位是s
|
|
|
|
|
base_vote = 20//内部消息传递速度快,抽签的超时时间
|
|
|
|
|
base_sync = 20//没有耗时操作,没有大块传输的情况下
|
|
|
|
|
base_addition = 0//冗余量,不用配置
|
|
|
|
|
|
|
|
|
|
//For config manually 手工设置超时时间,系统主动采用手工设置的时间,可以不用设置
|
|
|
|
|
block = 60//出块的超时时间
|
2018-10-23 21:38:20 +08:00
|
|
|
|
endorse = 4//背书超时时间,单位为秒
|
2018-10-18 22:42:27 +08:00
|
|
|
|
transaction_preload = 30
|
|
|
|
|
sync_chain = 30//链同步的超时时间
|
|
|
|
|
transcation_waiting = 900//交易在交易池中等待入块到的超时时间,单位是秒
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
consensus {
|
|
|
|
|
//共识类型,目前只支持一种
|
|
|
|
|
type = "CRFD"
|
|
|
|
|
}
|
|
|
|
|
|
2018-07-11 22:21:37 +08:00
|
|
|
|
}
|