Skip to content

Commit 4294755

Browse files
Added throttle
1 parent 38409d1 commit 4294755

File tree

2 files changed

+206
-0
lines changed

2 files changed

+206
-0
lines changed

examples/performance-tuning/latitude/Taskfile.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ env:
1717
APPLICATION_PROPERTIES_FLAG: "--application-properties {{.USER_WORKING_DIR}}/application.properties"
1818
HEDERA_SERVICES_ROOT: "%HEDERA_SERVICES_ROOT%"
1919
LOCAL_BUILD_FLAG: "--local-build-path {{.HEDERA_SERVICES_ROOT}}/hedera-node/data"
20+
GENESIS_THROTTLES_FLAG: "--genesis-throttles-file {{.USER_WORKING_DIR}}/throttles.json"
21+
Lines changed: 204 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,204 @@
1+
{
2+
"buckets": [
3+
{
4+
"burstPeriod": 0,
5+
"burstPeriodMs": 15000,
6+
"name": "ThroughputLimits",
7+
"throttleGroups": [
8+
{
9+
"opsPerSec": 0,
10+
"milliOpsPerSec": 150000,
11+
"operations": [
12+
"ScheduleCreate",
13+
"CryptoCreate",
14+
"CryptoTransfer",
15+
"CryptoUpdate",
16+
"CryptoDelete",
17+
"CryptoGetInfo",
18+
"CryptoGetAccountRecords",
19+
"ConsensusCreateTopic",
20+
"ConsensusSubmitMessage",
21+
"ConsensusUpdateTopic",
22+
"ConsensusDeleteTopic",
23+
"ConsensusGetTopicInfo",
24+
"TokenGetNftInfo",
25+
"TokenGetInfo",
26+
"ScheduleDelete",
27+
"ScheduleGetInfo",
28+
"FileGetContents",
29+
"FileGetInfo",
30+
"ContractUpdate",
31+
"ContractDelete",
32+
"ContractGetInfo",
33+
"ContractGetBytecode",
34+
"ContractGetRecords",
35+
"ContractCallLocal",
36+
"TransactionGetRecord",
37+
"GetVersionInfo",
38+
"TokenGetAccountNftInfos",
39+
"TokenGetNftInfos",
40+
"CryptoApproveAllowance",
41+
"CryptoDeleteAllowance",
42+
"UtilPrng",
43+
"NodeCreate",
44+
"NodeUpdate",
45+
"NodeDelete"
46+
]
47+
},
48+
{
49+
"opsPerSec": 0,
50+
"milliOpsPerSec": 40000,
51+
"operations": [
52+
"FileCreate",
53+
"FileUpdate",
54+
"FileAppend",
55+
"FileDelete"
56+
]
57+
},
58+
{
59+
"opsPerSec": 0,
60+
"milliOpsPerSec": 100000,
61+
"operations": [
62+
"ScheduleSign"
63+
]
64+
},
65+
{
66+
"opsPerSec": 0,
67+
"milliOpsPerSec": 125000,
68+
"operations": [
69+
"TokenMint"
70+
]
71+
},
72+
{
73+
"opsPerSec": 0,
74+
"milliOpsPerSec": 35000,
75+
"operations": [
76+
"ContractCall",
77+
"ContractCreate",
78+
"EthereumTransaction"
79+
]
80+
},
81+
{
82+
"opsPerSec": 0,
83+
"milliOpsPerSec": 100000,
84+
"operations": [
85+
"TokenCreate",
86+
"TokenDelete",
87+
"TokenBurn",
88+
"TokenUpdate",
89+
"TokenFeeScheduleUpdate",
90+
"TokenAssociateToAccount",
91+
"TokenAccountWipe",
92+
"TokenDissociateFromAccount",
93+
"TokenFreezeAccount",
94+
"TokenUnfreezeAccount",
95+
"TokenGrantKycToAccount",
96+
"TokenRevokeKycFromAccount",
97+
"TokenPause",
98+
"TokenUnpause",
99+
"TokenUpdateNfts",
100+
"TokenReject",
101+
"TokenAirdrop",
102+
"TokenClaimAirdrop",
103+
"TokenCancelAirdrop"
104+
]
105+
}
106+
]
107+
},
108+
{
109+
"burstPeriod": 0,
110+
"burstPeriodMs": 1000,
111+
"name": "OffHeapQueryLimits",
112+
"throttleGroups": [
113+
{
114+
"opsPerSec": 0,
115+
"milliOpsPerSec": 100000,
116+
"operations": [
117+
"FileGetContents",
118+
"FileGetInfo",
119+
"ContractGetInfo",
120+
"ContractGetBytecode",
121+
"ContractCallLocal"
122+
]
123+
}
124+
]
125+
},
126+
{
127+
"burstPeriod": 0,
128+
"burstPeriodMs": 3000,
129+
"name": "PriorityReservations",
130+
"throttleGroups": [
131+
{
132+
"opsPerSec": 0,
133+
"milliOpsPerSec": 40000,
134+
"operations": [
135+
"FileCreate",
136+
"FileUpdate",
137+
"FileAppend",
138+
"FileDelete"
139+
]
140+
}
141+
]
142+
},
143+
{
144+
"burstPeriod": 0,
145+
"burstPeriodMs": 15000,
146+
"name": "CreationLimits",
147+
"throttleGroups": [
148+
{
149+
"opsPerSec": 0,
150+
"milliOpsPerSec": 40000,
151+
"operations": [
152+
"CryptoCreate",
153+
"NodeCreate"
154+
]
155+
},
156+
{
157+
"opsPerSec": 0,
158+
"milliOpsPerSec": 5000,
159+
"operations": [
160+
"ConsensusCreateTopic"
161+
]
162+
},
163+
{
164+
"opsPerSec": 0,
165+
"milliOpsPerSec": 100000,
166+
"operations": [
167+
"TokenCreate",
168+
"TokenAssociateToAccount",
169+
"ScheduleCreate",
170+
"TokenAirdrop"
171+
]
172+
}
173+
]
174+
},
175+
{
176+
"burstPeriod": 0,
177+
"burstPeriodMs": 1000,
178+
"name": "FreeQueryLimits",
179+
"throttleGroups": [
180+
{
181+
"opsPerSec": 0,
182+
"milliOpsPerSec": 1000000000,
183+
"operations": [
184+
"TransactionGetReceipt"
185+
]
186+
}
187+
]
188+
},
189+
{
190+
"burstPeriod": 0,
191+
"burstPeriodMs": 1000,
192+
"name": "BalanceQueryLimits",
193+
"throttleGroups": [
194+
{
195+
"opsPerSec": 0,
196+
"milliOpsPerSec": 1000000,
197+
"operations": [
198+
"CryptoGetAccountBalance"
199+
]
200+
}
201+
]
202+
}
203+
]
204+
}

0 commit comments

Comments
 (0)