cjcchen commented on issue #169: URL: https://github.com/apache/incubator-resilientdb/issues/169#issuecomment-2663493564
Hi Shubo, Thanks for your interest in the smart contract. The interface is different from the original Key-Value Service, the request is a sub-message inside the KvRequest. You can take a look here how to generate the request on Create-Account for smart contracts. https://github.com/apache/incubator-resilientdb/blob/master/interface/kv/contract_client.cpp#L35 I have done the performance on the smart contracts. Let me know if you have any issues while running the performance. Thanks, Junchao On Mon, Feb 17, 2025 at 6:36 PM Shubo Peng ***@***.***> wrote: > Hi Junchao, > > I noticed that resdb was able to support smart contracts after the Feb > 14th update, so I wanted to change the KVRequest to the contract's request > when measuring pbft performance. specifically, I changed *KVRequest::SET* > in *benchmark/protocols/pbft/kv_server_performance.cpp* to > *Request::CREATE_ACCOUNT* (I saw this usage in > *executor/contract/executor/contract_executor_test.cpp*), but the problem > is that I can't find the *Request::CREATE_ACCOUNT* is defined somewhere. > > Another question. I tried to control the send rate of request (like 30,000 > reqs/sec) when testing, so I added some code here: > > https://github.com/apache/incubator-resilientdb/blob/master/platform/consensus/ordering/pbft/performance_manager.cpp#L111 > <http://url> > 2025-02-17.183009.png (view on web) > <https://github.com/user-attachments/assets/6f560f95-b5a8-4848-beca-38f2a39a7f22> > But it didn't work. It ran out the same as if I hadn't changed it. > > — > Reply to this email directly, view it on GitHub > <https://github.com/apache/incubator-resilientdb/issues/169#issuecomment-2662702512>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AA4YYLW3NYLYRKUVFVMEA2T2QG3RLAVCNFSM6AAAAABVL5CM46VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRSG4YDENJRGI> > . > You are receiving this because you commented.Message ID: > ***@***.***> > [image: Shubo-Peng]*Shubo-Peng* left a comment > (apache/incubator-resilientdb#169) > <https://github.com/apache/incubator-resilientdb/issues/169#issuecomment-2662702512> > > Hi Junchao, > > I noticed that resdb was able to support smart contracts after the Feb > 14th update, so I wanted to change the KVRequest to the contract's request > when measuring pbft performance. specifically, I changed *KVRequest::SET* > in *benchmark/protocols/pbft/kv_server_performance.cpp* to > *Request::CREATE_ACCOUNT* (I saw this usage in > *executor/contract/executor/contract_executor_test.cpp*), but the problem > is that I can't find the *Request::CREATE_ACCOUNT* is defined somewhere. > > Another question. I tried to control the send rate of request (like 30,000 > reqs/sec) when testing, so I added some code here: > > https://github.com/apache/incubator-resilientdb/blob/master/platform/consensus/ordering/pbft/performance_manager.cpp#L111 > <http://url> > 2025-02-17.183009.png (view on web) > <https://github.com/user-attachments/assets/6f560f95-b5a8-4848-beca-38f2a39a7f22> > But it didn't work. It ran out the same as if I hadn't changed it. > > — > Reply to this email directly, view it on GitHub > <https://github.com/apache/incubator-resilientdb/issues/169#issuecomment-2662702512>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AA4YYLW3NYLYRKUVFVMEA2T2QG3RLAVCNFSM6AAAAABVL5CM46VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRSG4YDENJRGI> > . > You are receiving this because you commented.Message ID: > ***@***.***> > -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
