You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@seata.apache.org by "l81893521 (via GitHub)" <gi...@apache.org> on 2025/09/19 16:02:28 UTC

[I] Seata Benchmark 1.0 Development Task [incubator-seata]

l81893521 opened a new issue, #7646:
URL: https://github.com/apache/incubator-seata/issues/7646

   ### Check Ahead
   
   - [x] I have searched the [issues](https://github.com/seata/seata/issues) of this repository and believe that this is not a duplicate.
   
   - [ ] I am willing to try to implement this feature myself.
   
   
   ### Why you need it?
   
   As a distributed transaction solution, Seata's performance across different transaction modes is a key concern for users. Currently, there lacks a simple, focused tool to stress test various transaction modes (AT, TCC, Saga, etc.) and display critical table data changes in real-time.
   
   ### How it could be?
   
   Develop a command-line version Benchmark tool capable of stress testing Seata's transaction modes and displaying key information changes from the global transaction table (global_table) and branch transaction table (branch_table) in real-time during testing, enabling visual observation of transaction state transitions and performance metrics
   
   ### Other related information
   
   _No response_


-- 
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: notifications-unsubscribe@seata.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org


Re: [I] Seata Benchmark 1.0 Development Task [incubator-seata]

Posted by "WangzJi (via GitHub)" <gi...@apache.org>.
WangzJi commented on issue #7646:
URL: https://github.com/apache/incubator-seata/issues/7646#issuecomment-4072003495

   Hi @liuliuzo , thanks for your interest! This particular issue has already been completed.
   However, we currently have another open task in this module that would be a great fit: https://github.com/apache/incubator-seata/issues/8012.
   If you'd like to take it on, please feel free to comment on that thread to claim it.
   


-- 
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: notifications-unsubscribe@seata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org


Re: [I] Seata Benchmark 1.0 Development Task [incubator-seata]

Posted by "WangzJi (via GitHub)" <gi...@apache.org>.
WangzJi commented on issue #7646:
URL: https://github.com/apache/incubator-seata/issues/7646#issuecomment-3471681426

   > Create a standalone benchmark module with a CLI tool to stress test Seata transaction modes (AT, TCC, Saga, XA) and display real-time metrics from global_table and branch_table.
   > 
   >  Implementation Steps
   > 
   >  1. Create Benchmark Module
   >  - Add benchmark module to root pom.xml
   >  - Create benchmark/pom.xml with dependencies: server, core, metrics, JCommander
   >  - Set up package structure
   > 
   >  2. CLI Interface (JCommander)
   >  - Command-line options:
   >    - --mode: Transaction mode (AT/TCC/SAGA/XA/ALL)
   >    - --storage: Storage mode (db/file/redis/raft)
   >    - --threads: Number of concurrent threads
   >    - --duration: Benchmark duration (seconds)
   >    - --tps-target: Target transactions per second
   >    - --config: Path to Seata configuration
   > 
   >  3. Transaction Simulator
   >  - Mock GlobalSession and BranchSession creation
   >  - Use TransactionStoreManager to write sessions
   >  - Simulate transaction state transitions (Begin → Committing → Committed)
   >  - Support different transaction modes with appropriate branch types
   > 
   >  4. Metrics Collection
   >  - Track: TPS, Success Rate, Avg Latency, P95/P99 Latency
   >  - Query global_table for: total count, status distribution
   >  - Query branch_table for: total count, branch type distribution
   >  - Monitor storage layer performance
   > 
   >  5. Real-time Console Display
   >  - Live updating dashboard using ANSI escape codes
   >  - Show:
   >    - Current TPS and target TPS
   >    - Transaction counts by status (Begin/Committing/Committed/Rollback)
   >    - Branch counts by type (AT/TCC/SAGA/XA)
   >    - Table statistics refresh every second
   >    - Performance metrics (latency percentiles)
   > 
   >  6. Storage Adapter
   >  - Abstract interface to work with all storage modes
   >  - Use existing TransactionStoreManager implementations
   >  - Handle configuration for each storage type
   > 
   >  Key Technical Details
   > 
   >  - Leverage existing classes: GlobalSession, BranchSession, TransactionStoreManager
   >  - Use ServerTableColumnsName constants for table queries
   >  - Support all BranchType enums: AT, TCC, SAGA, XA, SAGA_ANNOTATION
   >  - Thread pool for concurrent transaction generation
   >  - Graceful shutdown to ensure data consistency
   > 
   This is a plan generated by AI. What do you think about it? If this issue is not urgent, I'd like to give it a try.


-- 
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: notifications-unsubscribe@seata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org


Re: [I] Seata Benchmark 1.0 Development Task [incubator-seata]

Posted by "l81893521 (via GitHub)" <gi...@apache.org>.
l81893521 commented on issue #7646:
URL: https://github.com/apache/incubator-seata/issues/7646#issuecomment-3536384166

   > > Create a standalone benchmark module with a CLI tool to stress test Seata transaction modes (AT, TCC, Saga, XA) and display real-time metrics from global_table and branch_table.
   > > Implementation Steps
   > > 
   > > 1. Create Benchmark Module
   > > 
   > > 
   > > * Add benchmark module to root pom.xml
   > > * Create benchmark/pom.xml with dependencies: server, core, metrics, JCommander
   > > * Set up package structure
   > > 
   > > 
   > > 2. CLI Interface (JCommander)
   > > 
   > > 
   > > * Command-line options:
   > >   
   > >   * --mode: Transaction mode (AT/TCC/SAGA/XA/ALL)
   > >   * --storage: Storage mode (db/file/redis/raft)
   > >   * --threads: Number of concurrent threads
   > >   * --duration: Benchmark duration (seconds)
   > >   * --tps-target: Target transactions per second
   > >   * --config: Path to Seata configuration
   > > 
   > > 
   > > 3. Transaction Simulator
   > > 
   > > 
   > > * Mock GlobalSession and BranchSession creation
   > > * Use TransactionStoreManager to write sessions
   > > * Simulate transaction state transitions (Begin → Committing → Committed)
   > > * Support different transaction modes with appropriate branch types
   > > 
   > > 
   > > 4. Metrics Collection
   > > 
   > > 
   > > * Track: TPS, Success Rate, Avg Latency, P95/P99 Latency
   > > * Query global_table for: total count, status distribution
   > > * Query branch_table for: total count, branch type distribution
   > > * Monitor storage layer performance
   > > 
   > > 
   > > 5. Real-time Console Display
   > > 
   > > 
   > > * Live updating dashboard using ANSI escape codes
   > > * Show:
   > >   
   > >   * Current TPS and target TPS
   > >   * Transaction counts by status (Begin/Committing/Committed/Rollback)
   > >   * Branch counts by type (AT/TCC/SAGA/XA)
   > >   * Table statistics refresh every second
   > >   * Performance metrics (latency percentiles)
   > > 
   > > 
   > > 6. Storage Adapter
   > > 
   > > 
   > > * Abstract interface to work with all storage modes
   > > * Use existing TransactionStoreManager implementations
   > > * Handle configuration for each storage type
   > > 
   > > Key Technical Details
   > > 
   > > * Leverage existing classes: GlobalSession, BranchSession, TransactionStoreManager
   > > * Use ServerTableColumnsName constants for table queries
   > > * Support all BranchType enums: AT, TCC, SAGA, XA, SAGA_ANNOTATION
   > > * Thread pool for concurrent transaction generation
   > > * Graceful shutdown to ensure data consistency
   > 
   > This is a plan generated by AI. What do you think about it? If this issue is not urgent, I'd like to give it a try.
   
   Thank you very much for your response. You are welcome to give it a try. Could you leave your contact information?


-- 
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: notifications-unsubscribe@seata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org


Re: [I] Seata Benchmark 1.0 Development Task [incubator-seata]

Posted by "liuliuzo (via GitHub)" <gi...@apache.org>.
liuliuzo commented on issue #7646:
URL: https://github.com/apache/incubator-seata/issues/7646#issuecomment-4071880394

   Can I get this report?
   


-- 
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: notifications-unsubscribe@seata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org


Re: [I] Seata Benchmark 1.0 Development Task [incubator-seata]

Posted by "funky-eyes (via GitHub)" <gi...@apache.org>.
funky-eyes closed issue #7646: Seata Benchmark 1.0 Development Task
URL: https://github.com/apache/incubator-seata/issues/7646


-- 
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: notifications-unsubscribe@seata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org