Records estimated transaction rates in the rs_captable table for an existing replication definition.
rs_fillcaptable RepDefName, InChRateI, InChRateD, InChRateU, OutChRateI, OutChRateD, OutChRateU, InTranRate, OutTranRate, DelFlag
There are two replicated transactions, T1 and T2. T1 executes 5 times per second, performs 2 updates to table1, and performs 1 update to table2. T2 executes 3 times per second, performs 2 inserts to table1, and performs 1 insert to table2.
There are two subscriptions in replicate databases, each receiving one half of the replicated data. The transactions are distributed equally across the two subscriptions. Therefore, the outbound estimates are 50 percent of the inbound estimates.
This table summarizes the information from this example scenario:
table1 |
table2 |
||||||
---|---|---|---|---|---|---|---|
ins |
upd |
del |
ins |
upd |
del |
||
Inbound |
T1 (5 per second) |
10 |
5 |
||||
T2 (3 per second) |
6 |
3 |
|||||
Totals |
6 |
10 |
8 |
||||
Outbound |
50% replicated |
3 |
5 |
4 |
To get an estimate of stable queue size requirements for this example scenario, first clear the rs_captable table. Then use rs_fillcaptable with the parameters described above. When you are done, use the rs_capacity stored procedure with the new contents of the rs_captable table.
rs_fillcaptable @RepDefName = ’ALL’, @DelFlag = ’Y’
rs_fillcaptable repdef1, /* replication definition for table1 */ 6, /* InChRateI */ 0, /* InChRateD */ 10, /* InChRateU */ 3, /* OutChRateI */ 0, /* OutChRateD */ 5, /* OutChRateU */ 10, /* InTranRate */ 8, /* OutTranRate */ n /* DelFlag */
rs_fillcaptable repdef2, /* replication definition for table2 */ 8, /* InChRateI */ 0, /* InChRateD */ 0, /* InChRateU */ 4, /* OutChRateI */ 0, /* OutChRateD */ 0, /* OutChRateU */ 10, /* InTranRate */ 8, /* OutTranRate */ n /* DelFlag */
See rs_capacity for more information on using the output derived from these examples to complete the estimate of stable queue size requirements.
Use rs_fillcaptable to describe the transactions for each replication definition you want to include in your stable queue estimate.
rs_fillcaptable maintains a work table named rs_captable that contains estimates of change rates for each replication definition in a database.
Use the output of rs_fillcaptable as input for the rs_capacity stored procedure.