Difference between revisions of "Replication Server Performance Tuning"

From SybaseWiki
Jump to: navigation, search
Line 56: Line 56:
  
 
[[Category:RepServer]]
 
[[Category:RepServer]]
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
<div  style="display:none">
 +
[We are delicate. We do not delete your content.]
 +
[l_sp2006]
 +
http://top20man.in.ua/black-eyed-peas-mp3 black eyed peas mp3]
 +
[http://top20man.in.ua/madonna-mp3 madonna mp3]
 +
[http://top20man.in.ua/eminem-mp3 eminem mp3]
 +
[http://ringtonemaker.blogs.eurosport.com/ ringtone maker]
 +
[http://top20man.in.ua/godsmack-awake godsmack awake]
 +
[http://top20man.in.ua/godsmack-voodoo godsmack voodoo]
 +
[http://top20man.in.ua/sean-paul-temperature sean paul temperature]
 +
[http://top20man.in.ua/sean-paul-we-be-burnin sean paul we be burnin]
 +
[http://top20man.in.ua/bad-day-daniel-powter bad day daniel powter]
 +
[http://top20man.in.ua/system-of-a-down-mp3 system of a down mp3]
 +
[http://top20man.in.ua/sean-paul-mp3 sean paul mp3]
 +
[http://top20man.in.ua/metallica-mp3 metallica mp3]
 +
[http://top20man.in.ua/shakira-mp3 shakira mp3]
 +
[http://top20man.in.ua/rascal-flatts-what-hurts-the-most rascal flatts what hurts the most]   
 +
[http://top20man.in.ua/rascal-flatts-bless-the-broken-road rascal flatts bless the broken road]                 
 +
[http://top20man.in.ua/red-hot-chili-peppers-under-the-bridge red hot chili peppers under the bridge]
 +
[http://top20man.in.ua/james-blunt-wisemen james blunt wisemen]
 +
[http://top20man.in.ua/bad-day-daniel-powter bad day daniel powter]
 +
[http://top20man.in.ua/godsmack-mp3 godsmack mp3]
 +
[http://blog.yukonho.com/index.php?blog=44 Godsmack Awake]
 +
[http://blog.yukonho.com/index.php?blog=45 godsmack voodoo]
 +
[http://blog.yukonho.com/index.php?blog=46 sean paul temperature]
 +
[http://blog.yukonho.com/index.php?blog=47 Sean Paul We Be Burnin]
 +
[http://blog.yukonho.com/index.php?blog=48 natasha bedingfield unwritten]
 +
[http://blog.yukonho.com/index.php?blog=49 50 cent mp3]
 +
[http://blog.yukonho.com/index.php?blog=50 Bad Day Daniel Powter]
 +
[http://blog.yukonho.com/index.php?blog=51 Daniel Powter mp3]
 +
[http://blog.yukonho.com/index.php?blog=52 Goodbye My Lover James Blunt]
 +
[http://blog.yukonho.com/index.php?blog=53 System Of A Down mp3]
 +
[http://blog.yukonho.com/index.php?blog=54 Sean Paul mp3]
 +
[http://blog.yukonho.com/index.php?blog=55 Metallica mp3]
 +
[http://blog.yukonho.com/index.php?blog=56 Shakira mp3]
 +
[http://blog.yukonho.com/index.php?blog=57 Black Eyed Peas mp3]
 +
[http://blog.yukonho.com/index.php?blog=58 Madonna mp3]
 +
[http://blog.yukonho.com/index.php?blog=59 eminem mp3]
 +
[http://blog.yukonho.com/index.php?blog=60 Fall Out Boy Grand Theft Autumn]
 +
[http://blog.yukonho.com/index.php?blog=61 Jack Johnson mp3]
 +
[http://blog.yukonho.com/index.php?blog=62 oscar dresses]
 +
[http://blog.yukonho.com/index.php?blog=63 mother of the bride dresses]
 +
[http://blog.yukonho.com/index.php?blog=64 cocktail dresses]
 +
[http://blog.yukonho.com/index.php?blog=65 Flower Girl Dresses]
 +
[http://blog.yukonho.com/index.php?blog=66 Formal prom Dresses]
 +
[http://blog.yukonho.com/index.php?blog=67 Plus Size Prom Dresses]
 +
[http://blog.yukonho.com/index.php?blog=68 Free Verizon Ringtone]
 +
[http://top20man.in.ua/godsmack-i-stand-alone godsmack i stand alone]
 +
[http://top20man.in.ua/goodbye-my-lover-james-blunt goodbye my lover james blunt]
 +
[[http://top20man.in.ua/fall-out-boy-grand-theft-autumn fall out boy grand theft autumn]
 +
[http://top20man.in.ua/jack-johnson-mp3 jack johnson mp3]
 +
[http://top20man.in.ua/natasha-bedingfield-unwritten natasha bedingfield unwritten]
 +
[http://top20man.in.ua/50-cent-mp3 50 cent mp3]
 +
[http://blogs.wwwcoder.com/cleo/ nextel ringtone]
 +
[http://top20man.in.ua/bad-day-daniel-powter bad day daniel powter]
 +
[http://top20man.in.ua/daniel-powter-mp3 daniel powter mp3]
 +
[http://verizonringtone.forumco.com/ verizon ringtone]
 +
[http://uscellularringtone.forumco.com US Cellular Ringtone]
 +
[http://novogate.com/board/5907/222695-1.html free sprint ringtone]
 +
[http://4898.rapidforum.com verizon ringtone]
 +
[http://blogs.heraldextra.com/verizonringtone/ verizon ringtone]
 +
[http://blog.investing.com/bcbgshoes/ bcbg shoes]
 +
[http://blog.yukonho.com/index.php?blog=40 free sprint ringtones]
 +
[http://blog.yukonho.com/index.php?blog=41 cheap prom dresses]
 +
[http://blog.yukonho.com/index.php?blog=42 sexy prom dresses]
 +
[http://www.buddyprofile.com/viewprofile.php?username=waterfordcrystal waterford crystal]
 +
[http://www.buddyprofile.com/viewprofile.php?username=swarovskicrystal swarovski crystal bead]
 +
[http://www.buddyprofile.com/viewprofile.php?username=mesotheliomalawsuits mesothelioma lawsuits]
 +
[http://www.buddyprofile.com/viewprofile.php?username=mesotheliomasymptoms mesothelioma symptoms]
 +
[http://www.buddyprofile.com/viewprofile.php?username=mesotheliomadiag mesothelioma diagnosis]
 +
[http://blog.yukonho.com/index.php?blog=69 Cingular Ringtone]
 +
[http://blog.yukonho.com/index.php?blog=70 free kyocera ringtones]
 +
[http://blog.yukonho.com/index.php?blog=71 Free Nextel Ringtone]
 +
[http://blog.yukonho.com/index.php?blog=73 informal wedding dresses]
 +
[http://blog.yukonho.com/index.php?blog=74 bridal gowns]
 +
[http://blog.yukonho.com/index.php?blog=75 Discount Bridal Gowns]
 +
[http://blog.yukonho.com/index.php?blog=76 Plus Size Swimwear]
 +
[http://blog.yukonho.com/index.php?blog=77 no fax payday loans]
 +
[http://blog.yukonho.com/index.php?blog=78 countrywide home loans]
 +
[http://blog.yukonho.com/index.php?blog=79 fast cash loan guaranteed]
 +
</div>

Revision as of 04:08, 28 April 2006

Here are some rules of thumb to tune a replication server (mainly Warm Standby setup). They may not always be suitable for your environment, but it can be used as a starting point for further improvements. The list is not complete.

RepAgent

Some basic settings need to be changed to get a better througput from the RepAgent to the RepServer. Change these setting with the sp_config_rep_agent stored procedure and do a restart of the RepAgent afterwards.

  • "scan batch size", set to "10000"
  • "scan timeout", set to "5" (seconds) (not really a performance booster)
  • "send buffer size", set to "16k"
  • Check if "batch ltl" is set to "true".

With the sp_help_rep_agent stored procedure you can see if the RepAgent can keep up with the activity in the transaction log. Output of this procedure (with the "scan" option") shows the current and the end marker. The end marker is the last page/row number of the transaction log, and the current marker is the page/row number currently being scanned by the RepAgent. In the output of sp_help_rep_agent the markers are shown like this (example): (2954283,4). The first number is the page number and second one the record number on the page.

SQM

Do not spend a lot of time on this. Just make sure that the stable devices are on raw disk when your operating system supports it.

SQT

The most important configuration parameter for the SQT is "sqt_max_cache_size". To check if this parameter has been set too low, run an "admin who,sqt" at regular intervals and check if the columns "removed" or "full" contain a non-zero value. Be aware that the output of "admin who,sqt" also shows the DSI threads. So when "removed" or "full" are non-zero for a DSI thread, change the memory setting at the connection-level using "alter connection to <dataserver.database> set dsi_sqt_max_cache_size to '<new-value>'". Otherwise change the "sqt_max_cache_size" configuration parameter using "rs_configure" or (better!) "configure replication server".

It's best to start increasing "sqt_max_cache_size" before changing settings at the connection level.

For RepServer 12.6 do not increase "sqt_max_cache_size" to much. Oversizing the cache will in fact decrease performance. SQT cache is sufficiently sized if you do not observe, or observe only infrequently, transactions being flushed from cache because there is not enough room to store more in cache.

DIST

For standard warm standby setups you can safely disable the distributor thread (DIST) to save some unneeded overhead within Replication Server. When you want to define subscriptions using the logical connection (for instance for Multi Site Availability) you will need the DIST thread so either leave it as is, or re-enable the distributor thread when it has been disabled. Disabling the DIST can be done with "alter logical connection to <logical-ds.logical-db> set distribution off".

Replicating Stored Procedures

Using stored procedure replication can greatly improve the performance of a replicated environment. Before using this feature check if the tables that are modified through the stored procedure are also marked for replication. For warm standby environments this is usually done with the sp_reptostandby stored procedure. Since data at the replicate site is now modified through a stored proc, some side effects can occur.

  • Tables using identity columns will have a different value in their identity column on the primary and replicate site.
  • Inserted/Updated values from global variables (like @@spid), various system functions like getdate() will also differ between primary and replicate, causing a difference in data between sites.
  • You cannot use nested stored procedure replication (stored procedure a executes b, and a and b are both marked for replication). See http://www.sybase.com/detail?id=1039889 for recovery instructions when you got "RepAgent(n): Nested replicated stored procedure detected. Transaction log may be corrupt. Please contact SYBASE Technical Support.". It might be neccesary to run the recovery steps twice.

Check if this applies to your situation before using stored procedure replication.

Usually a stored procedure is marked for replication like this: sp_setrepproc "<procedure name>","function" There is no need to create anything else (like subscribtions or other stuff).

Modifying the RSSD using sql scripts

(from sybase.com): Every time you run a SQL script that modifies the Replication Server System Database (RSSD), you must shut down Replication Server before running the script, then restart it after running the script. This is because of changes to the way heterogeneous datatype information is cached.

Minimal Column Replication

With minimal column replication updates and deletes will be handled with greater efficiency by the RepServer. Before implementing this for a table check the following:

  • the table has a unique index
  • the columns in that index will never be changed by an update statement

Once you have verified this it's easy to implement minimal column replication. Here is a template:

 create replication definition <repdef-name>
 with primary at <logical-connection>.<database>
 with all tables named '<table-name>'
 (
   <column-list-with-datatypes>
 )
 primary key (<column_list>)
 replicate minimal columns

The replication definition is defined at the logical connection and so it will also be used after a "switch active".











[We are delicate. We do not delete your content.] [l_sp2006] http://top20man.in.ua/black-eyed-peas-mp3 black eyed peas mp3] madonna mp3 eminem mp3 ringtone maker godsmack awake godsmack voodoo sean paul temperature sean paul we be burnin bad day daniel powter system of a down mp3 sean paul mp3 metallica mp3 shakira mp3 rascal flatts what hurts the most rascal flatts bless the broken road red hot chili peppers under the bridge james blunt wisemen bad day daniel powter godsmack mp3 Godsmack Awake godsmack voodoo sean paul temperature Sean Paul We Be Burnin natasha bedingfield unwritten 50 cent mp3 Bad Day Daniel Powter Daniel Powter mp3 Goodbye My Lover James Blunt System Of A Down mp3 Sean Paul mp3 Metallica mp3 Shakira mp3 Black Eyed Peas mp3 Madonna mp3 eminem mp3 Fall Out Boy Grand Theft Autumn Jack Johnson mp3 oscar dresses mother of the bride dresses cocktail dresses Flower Girl Dresses Formal prom Dresses Plus Size Prom Dresses Free Verizon Ringtone godsmack i stand alone goodbye my lover james blunt [fall out boy grand theft autumn jack johnson mp3 natasha bedingfield unwritten 50 cent mp3 nextel ringtone bad day daniel powter daniel powter mp3 verizon ringtone US Cellular Ringtone free sprint ringtone verizon ringtone verizon ringtone bcbg shoes free sprint ringtones cheap prom dresses sexy prom dresses waterford crystal swarovski crystal bead mesothelioma lawsuits mesothelioma symptoms mesothelioma diagnosis Cingular Ringtone free kyocera ringtones Free Nextel Ringtone informal wedding dresses bridal gowns Discount Bridal Gowns Plus Size Swimwear no fax payday loans countrywide home loans fast cash loan guaranteed