search
HomeDatabaseMysql TutorialOracle GoldenGate 系列:如何计算 Extract 或 Replicat 进程的

测量吞吐量 在数据复制环境中,测量指定时间段内复制的数据量非常重要。不过,带宽一般是按照 Gbps 的单位(Gbit/s)来算的。测量和报告操作的类型和数量可以从整体上了解 GoldenGate 环境的性能。 数据吞吐量 要计算 GoldenGate 的吞吐量,我们可以使用以下

测量吞吐量

在数据复制环境中,测量指定时间段内复制的数据量非常重要。不过,带宽一般是按照 Gbps 的单位(Gbit/s)来算的。测量和报告操作的类型和数量可以从整体上了解 GoldenGate 环境的性能。

数据吞吐量

要计算 GoldenGate 的吞吐量,我们可以使用以下参数在进程的报告文件中附加该进程相关的统计信息:

REPORTCOUNT EVERY 1 MINUTES, RATE

REPORTCOUNT 可以在 Extract 或 Replicat参数文件中使用。 RATE 选项可以提供额外的性能统计信息,计算进程启动以来处理的总记录数,包括上一次报告以来的增量统计信息。

下面的 Extract 报告示例显示的是 1 分钟间隔内的 RATE 统计信息:

2010-10-13 11:24:58 INFO OGG-01026 Rolling over remote file ./dirdat/na000060.

9334116 records processed as of 2010-10-13 11:25:24 (rate 3728,delta 9352)

9907789 records processed as of 2010-10-13 11:26:24 (rate 3865,delta 9543)

10492064 records processed as of 2010-10-13 11:27:26 (rate 3997,delta9518)

10975243 records processed as of 2010-10-13 11:28:26 (rate 4088,delta8052)

要测量每秒、每分钟、每小时的吞吐量,我们需要计算指定时间段处传输的字节数。为此,我们必须按照以下步骤在持续的负载期间对每个 Extract 或 Replicat进程执行如下操作:

1. 以 Oracle 用户登录并调用  GGSCI 命令:

2. 执行 INFO ALL 命令列出各个进程的信息。选择一个进程来测量其吞吐量及运行时详细信息:

GGSCI (dbserver2) 2> info RTGTRNG1, detail

REPLICAT RTGTRNG1 Last Started2010-10-29 16:39 Status RUNNING Checkpoint Lag 00:00:00 (updated 00:00:27 ago)Log Read Checkpoint File ./dirdat/nb000001 2010-10-29 17:07:15.993969 RBA 428715322

Extract Source Begin End

./dirdat/nb000001 2010-10-2916:37 2010- 10-29 17:07 ./dirdat/nb000000 * Initialized * 2010- 10-29 16:37

3. 等待一分钟后,再通过 GGSCI 命令执行同样的命令:  

GGSCI (dbserver2) 3> !

info RTGTRNG1, detail

REPLICAT RTGTRNG1 Last Started2010-10-29 16:39 Status RUNNING Checkpoint Lag 00:00:00 (updated 00:00:07 ago)Log Read Checkpoint File ./dirdat/nb000001 2010-10-29 17:08:15.982789 RBA 485803675

4. 用两次 info,detail 命令的 RelativeByte Address (RBA) 相减来计算吞吐量的详细信息。

485803675 – 428715322= 57088353 bytes / minute

5. 将每分钟处理的字节数转换成每分钟处理的MB数。

57088353/(1024*1024) = 54.55 MB/minute

6. 将每分钟处理的MB数转换为每小时处理的MB数。

54.55 * 60 = 3266.62 MB/hour

7. 最后,计算每小时处理的GB数。

3266.62/1024 = 3.19 GB/hour

8. 通过上述步骤,可以准确地计算每个进程的数据吞吐量,快速地识别性能瓶颈。

 

操作吞吐量

操作的吞吐量是指指定时间段内每秒出现的 insert、update、delete 和 discard 操作的总数。

GoldenGate软件针对操作的吞吐量提供了全面的统计信息,可以通过该统计信息确认进程是否运行正常,报告进程的负载和性能。可以通过针对 Extract 或 Replicat 进程执行 GGSCI STATS 命令获取该信息。以下命令可以查看进程启动以来的累积操作数,包括每天和每小时的。该命令支持通配符。

GGSCI (dbserver2) 1> stats replicat RTGTRNG1, totalsonly *, reportratesec

STATS 命令的另一个选项可以报告指定时间段内针对 Extract 进程以及特定表的操作负载。

GGSCI (dbserver1) 1> stats EXTRACT ESRCNMSG, totalsonly SRC.ORDERS

可以根据需要执行  GGSCI SEND 命令将操作的负载信息写入进程的报告文件。

GGSCI (dbserver1) 2> send EXTRACT ESRCNMSG, report

Sending REPORT request to EXTRACT ESRCNMSG ... Request processed.

SEND 还可以和 EVENTACTIONS 一起使用,用以生成特定事件的统计信息。可以通过  view report 命令阅读最新的报告文件。

GGSCI (dbserver1) 3> view report ESRCNMSG

..

Output to ./dirdat/na:

From Table SRC.SESSIONS:

# inserts: 2526

# updates: 2526

# deletes: 0

# discards: 0

From Table SRC.USERS:

# inserts: 0

# updates: 7534



http://blog.csdn.net/xiangsir/article/details/8837163



Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Explain the InnoDB Buffer Pool and its importance for performance.Explain the InnoDB Buffer Pool and its importance for performance.Apr 19, 2025 am 12:24 AM

InnoDBBufferPool reduces disk I/O by caching data and indexing pages, improving database performance. Its working principle includes: 1. Data reading: Read data from BufferPool; 2. Data writing: After modifying the data, write to BufferPool and refresh it to disk regularly; 3. Cache management: Use the LRU algorithm to manage cache pages; 4. Reading mechanism: Load adjacent data pages in advance. By sizing the BufferPool and using multiple instances, database performance can be optimized.

MySQL vs. Other Programming Languages: A ComparisonMySQL vs. Other Programming Languages: A ComparisonApr 19, 2025 am 12:22 AM

Compared with other programming languages, MySQL is mainly used to store and manage data, while other languages ​​such as Python, Java, and C are used for logical processing and application development. MySQL is known for its high performance, scalability and cross-platform support, suitable for data management needs, while other languages ​​have advantages in their respective fields such as data analytics, enterprise applications, and system programming.

Learning MySQL: A Step-by-Step Guide for New UsersLearning MySQL: A Step-by-Step Guide for New UsersApr 19, 2025 am 12:19 AM

MySQL is worth learning because it is a powerful open source database management system suitable for data storage, management and analysis. 1) MySQL is a relational database that uses SQL to operate data and is suitable for structured data management. 2) The SQL language is the key to interacting with MySQL and supports CRUD operations. 3) The working principle of MySQL includes client/server architecture, storage engine and query optimizer. 4) Basic usage includes creating databases and tables, and advanced usage involves joining tables using JOIN. 5) Common errors include syntax errors and permission issues, and debugging skills include checking syntax and using EXPLAIN commands. 6) Performance optimization involves the use of indexes, optimization of SQL statements and regular maintenance of databases.

MySQL: Essential Skills for Beginners to MasterMySQL: Essential Skills for Beginners to MasterApr 18, 2025 am 12:24 AM

MySQL is suitable for beginners to learn database skills. 1. Install MySQL server and client tools. 2. Understand basic SQL queries, such as SELECT. 3. Master data operations: create tables, insert, update, and delete data. 4. Learn advanced skills: subquery and window functions. 5. Debugging and optimization: Check syntax, use indexes, avoid SELECT*, and use LIMIT.

MySQL: Structured Data and Relational DatabasesMySQL: Structured Data and Relational DatabasesApr 18, 2025 am 12:22 AM

MySQL efficiently manages structured data through table structure and SQL query, and implements inter-table relationships through foreign keys. 1. Define the data format and type when creating a table. 2. Use foreign keys to establish relationships between tables. 3. Improve performance through indexing and query optimization. 4. Regularly backup and monitor databases to ensure data security and performance optimization.

MySQL: Key Features and Capabilities ExplainedMySQL: Key Features and Capabilities ExplainedApr 18, 2025 am 12:17 AM

MySQL is an open source relational database management system that is widely used in Web development. Its key features include: 1. Supports multiple storage engines, such as InnoDB and MyISAM, suitable for different scenarios; 2. Provides master-slave replication functions to facilitate load balancing and data backup; 3. Improve query efficiency through query optimization and index use.

The Purpose of SQL: Interacting with MySQL DatabasesThe Purpose of SQL: Interacting with MySQL DatabasesApr 18, 2025 am 12:12 AM

SQL is used to interact with MySQL database to realize data addition, deletion, modification, inspection and database design. 1) SQL performs data operations through SELECT, INSERT, UPDATE, DELETE statements; 2) Use CREATE, ALTER, DROP statements for database design and management; 3) Complex queries and data analysis are implemented through SQL to improve business decision-making efficiency.

MySQL for Beginners: Getting Started with Database ManagementMySQL for Beginners: Getting Started with Database ManagementApr 18, 2025 am 12:10 AM

The basic operations of MySQL include creating databases, tables, and using SQL to perform CRUD operations on data. 1. Create a database: CREATEDATABASEmy_first_db; 2. Create a table: CREATETABLEbooks(idINTAUTO_INCREMENTPRIMARYKEY, titleVARCHAR(100)NOTNULL, authorVARCHAR(100)NOTNULL, published_yearINT); 3. Insert data: INSERTINTObooks(title, author, published_year)VA

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function