Slow merge replication over a WAN link - only downloads

Hi all,
We've been using SQL Server merge replication for a few years to synchronise data between our data centres, but we are now suffering with a big performance issue. This may be because the amount of data we are synchronising has increased a lot this year.
Our publisher is an always-on data centre in the UK. Our subscriber is a mobile data centre that travels around the world and is on for periods of up to a week at a time, approx. 25 times a year. However, it also spends the same amount of time (if not more)
switched off whilst on its travels - it is a well travelled data centre!
We have 5 database that we synchronise on these servers. However, one of our databases has high numbers of data changes between periods of subscriber downtime and our issue is that it take days to catch up when the server is powered up - the other databases
are fine.
Downloads from publisher to subscriber run at about 1.5 rows a second (which is annoying when we have hundreds of thousands of rows) but strangely uploads from subscriber to publisher run about ten times faster.
Things I have checked / tried:
all tables have non-clustered primary keys on guid columns that have the rowguid property set
changing the generation levelling threshold doesn't help
setting the agent profile to high volume doesn't help
running a trace at the publisher and subscriber shows the queries are all running very fast (less than 20 m/s generally, but there are gaps of 200 m/s or so between some batches of queries)
analysis on our WAN link shows we have huge amounts of bandwidth spare
analysis on our servers show we have huge amounts of Ram and CPU spare
Some of the places the subscriber is at do suffer from high latency but this doesn't seem to have an impact - 300 m/s or 100m/s and we still get the same poor performance.
One things I did wonder about - does the replication confirm to the publisher every time it has successfully processed a row at the subscriber? If we have thousands of rows and there is a latency on the line will this compound the issue if it confirms each
item? If this does happen, is there a way to batch up messages between publisher and subscriber?
Any help that you can offer will be gladly received!
Thanks
Mark

1) merge replication processes the uploads/downloads in batches. So no, there is no confirmation for each row processes, but there is per batch. If there is an error/conflict a batch is retried as singletons (a single row processed at a time), so you need
to minimize conflicts/errors.
2) No, but you should use pull and wan accelerators for max performance and change your profile to use 2000 for the following:
MaxDownloadChanges 
MaxUploadChanges
UploadGenerationsPerBatch  
DownloadGenerationsPerBatch 
UploadReadChangesPerBatch 
DownloadReadChangesPerBatch 
UploadWriteChangesPerBatch 
DownloadWriteChangesPerBatch 
set network packet size to a large value - you will need to work with your wan engineer to find out what works best. 32k will likely be best.
Also you may want to copy a file of a known size from your publisher to your subscriber and then from your subscriber to your publisher to see if there is a significant difference in time. For drives will yield significant differences.
I have found that you may have a trigger which is generating a large volume of unnessary changes. You will need to see what table/article is generating all the changes and evaluate whether the changes are legit.
Precomputed partitions should speed up the enumeration times. Ensure you have supporting indexes - the missing indexes DMV helps here.
Lastly you may find that a reinitialization is faster than processing the changes.
looking for a book on SQL Server 2008 Administration?
http://www.amazon.com/Microsoft-Server-2008-Management-Administration/dp/067233044X looking for a book on SQL Server 2008 Full-Text Search?
http://www.amazon.com/Pro-Full-Text-Search-Server-2008/dp/1430215941

Similar Messages

  • EEM -automatic shut down or switch over of WAN link in OSPF when packet drop increase

    Hi,
    Need help..
    can any one help me how can EEM help for automatic shut down or switch over of WAN link in OSPF when packet drop increase a predefined level.
    I have a set up different branches connected together...OSPF is the routing protocol and need to communicate with two branches via hub locations.
    need to shut or switch some percent of traffic from primary to back up when packet drop in the link.

    I am not sure EEM can do what you want.
    Another option could be to use SLA tacking/monitoring. But you will fall back to the new route when you lose some percentage of pings, you can't switch only part of the traffic.
    I hope it helps.
    PK

  • SQL PULL Merge Replication over web - totally unreliable?

    Hi,
    We have problems performing SQL PULL merge replication over the web.  Most of the time it works fine, but periodically we experience issues as described below.  Our application uses SQL Express for subscribers and we have our own C# RMO code for
    the agent.  We have eliminated our application as the source of the problem by setting up a full SQL Server as a subscriber and using the built in agent.  It experiences the same problems.
    1. Unable to download a snapshot.
    After reinitializing a subscriber, the snapshot will partially download and will then suddenly stop with the error:
        The connection with the server was terminated abnormally
    There is no obvious timeout issue, the error typically occurs as soon as one of the .bcp files is about to be downloaded.  It's often the same .bcp file that has the problem, but not always so there is no consistency.
    The only solution is to continually retry until the download eventually succeeds.  Recreating the snapshot before retrying seems to improve the chances of a successful sync.
    2. Unable to perform a normal sync (i.e. an update, rather than a full snapshot)
    An attempt to perform a sync results in the following information being logged:
        The upload message to be sent to Publisher 'SERVER2' is being generated
        The merge process is using Exchange ID 'F82F1A56-A81A-4786-A469-7A76259F9ED8' for this web synchronization session.
        No data needed to be merged.
        Request message generated, now making it ready for upload.
        Upload request size is 1895 bytes.
    At this point the sync simply stops doing anything.  There are no errors, the agent still appears to be running, but nothing else happens.
    We typically experience this problem once every few weeks.  Reinitializing a subscriber does not help, the same problem occurs.  The only solution is to recreate the snapshot and then to reinitialize the subscriber.  This then requires the
    subscriber to perform a full sync which takes around 45 minutes for our dataset.
    I am aware through online searches that others have experienced similar issues with SQL replication over web.  Are there any practical solutions to these issues, or is SQL replication over web simply broken?

    Hi Brandon, I noticed a post from you back towards the end of last year where you said you were giving up on it.  Did you ever get it resolved?  If not, did you identify a viable alternative solution?
    We need to replicate a SQL database to mobile tablets over 3G.  We've invested a lot of time and effort trying to make this solution work and to find that even using straight SQL server to SQL server has the same issues is disconcerting.
    One possible option is that although we currently use merge replication, that was really just a bad design decision taken early on.  We only perform one way replication, all our articles are flagged as one way only, server down to clients.  I have
    considered maybe moving towards transactional replication but unless I'm 100% certain I won't hit the same kind of issues, it really isn't viable to invest the time and effort.

  • Multi-Master Replication over the WAN

    DS verison: 5.1 sp1
    Did any one implement multi-master replication across the WAN or different IP subnets?

    Sun does mention about DS 5.2 being better than DS 5.1 in WAN based Muli-Master replication with respect to replication performance. I wanted to see if any one out there had implemented (or even played with this topology in their labs) it with out any major hickups.
    Thank you!

  • Lap not joining over a wan link

    hi
    i have 2 wism running on 6509 chassis and i have access points in remote branches. the lap is not joining the wism. here is the situation:
    lap can ping the controllers
    lap is getting ip address
    option 43 is there on the vlan
    dns entry for the wlc is there.
    however, when i checked the lap boot: it s getting an ip address and gives the command prompt.
    the below debugging on the wlc gives nothing:
    debug capwap events
    debug capwap errors
    debug mac addr <mac addr>
    the wan link is private wan running ospf on both routers from each end.
    I see no point why this lap is not joining
    any idea?

    Hi,
    According to your description, I understand that all attachments in Outlook are opened slowly since updating Outlook 2003 to 2013. Please confirm whether all users encounter this issue. Also check whether the issue continues in cached mode and in OWA.
    Based on your post, I suggest we can try to disable the following add-ins to check whether the issue persists:
    Acrobat PDFMaker office com addin
    symantec endpoint protection outlook addin
    If there is any updates, please feel free to let us know.
    Thanks,
    Winnie Liang
    TechNet Community Support

  • Slow wireless speeds on Mac Pro, but only downloads???

    I have an "early 2009" quad-core Mac Pro. I also have a Macbook Pro that's a couple of years old. I'm running speedtest.net, with the laptop sitting on top of the Pro. My wireless setup is a several-year-old Airport Extreme base station hard-wired to the Verizon router.
    My FiOS speed is 25/15, and that is generally what the laptop gets. When I first started this saga, the Mac Pro was getting about 4/12 on wireless (it is just as fast as the laptop if I hard-wire it). The laptop is also able to see about twice as many wireless networks as the Pro.
    I have had the Pro in to the Genius Bar 3 times over the last couple of weeks. I give them credit for trying really hard; they say it actually has better wireless speeds in their store than one of their own Mac Pros, so they are chasing a problem they can't reproduce. The main thing they have done so far is replace the Airport card, which improved my results to about 9/17, but here we seem to be stuck. At this point the store has done everything they can think of, and all they can offer is to give me the names of some Apple certified techs who can come out to my home office (for a fee, of course) and try to trouble-shoot it here.
    What I find most perplexing about this is that it's only download speed. I would think if there was some sort of interference, which is what they are thinking, it would affect both. And it would affect the laptop too.
    I have a brand-new Airport base station that I will try setting up, but I don't have high hopes. I can also try upgrading to Snow Leopard, but that is a big time sink that I'm not quite ready for yet (I like to do a full install when I upgrade).
    Does anyone have any other suggestions or tips on where else to research this?
    Thanks in advance!

    I saw this at a site where they were using DFS with Server 2003. When the few Mac's they had connected to the actual server and uploaded the file it was okay. But when it was sending the file via the \\DFS_node\share_name the Mac took heaps longer for the same file. Watching the Activity Monitor > Network monitor you could see gaps with the data transfer, as if there was some pausing between packets. A pcap showed that there was constant DNS requests coming from the Mac, even after the connection to the share was made. The same wasn't happening when the connection via SMB was directly to the actual file server. As there was only a few Mac on site they left it with the direct connection but were getting an MS specialist in to look at it. Never heard what happened with that one but you may want to try monitoring the packet transfer to see if the data movement is contstant or breaking. I'd also recommend getting Wireshark to monitor the transfer. You can compare upload to download and maybe even the transfer from the Mac to an MS workgroup share.

  • Cisco WAAS deployment over VSAT WAN links

    Hi.
    I would just like to know if you can implement Cisco WAAS on a WAN running on 128 VSAT llinks and if the performance improvement will be very significant. Significant enough to make me change my mind from upgrading the link?
    Thanks

    Hi Tod.
    Thank you very much for your reply. It was very helpful. I am currently researching into the viability of Cisco WAAS as an optimization tool that will increase bandwidth and reduce costs. I wanted to know if you could help suggest any useful document that could help in my research.
    Thank you again.

  • Office 2013 outlook (not responding) opening attachments over a WAN link

    Before I get to the question I'll give you some info about our arcitecture.
    We have 7 remote sites each with 5mb connections.
    5-10 computer at each site
    We are running exchange 2010 centrally from one server on a 20mb connection.
    All clients are running windows 7 64bit with office 2013
    We recetly upgraded from office 2003 to 2013 when this problem started.
    If a user clicks on an attachment from one of our remote sites, and if the attachment is larger than 150kb the outlook client displays (not responding) for up to two minutes.  If you wait long enough the attachment will open without error.  It
    doesnt matter if its a word docuemnt, PDF, JPG they all respond the same.  There are several active application add-ins running I have not tried to disable  any of them yet.
    Acrobat PDFMaker office com addin
    Lync meeting addin for microsoft office 2013
    microsoft exchange addin
    microsoft sharepoint server colleague import addin
    microsoft vba for outlook addin
    onenote notes about outlook items
    outlook social connector 2013
    symantec endpoint protection outlook addin
    I should also mention theres plenty of bandwidth free at both ends of the pipe.  Moving the same file size accross the network literally takes only takes a second or less.
    How can I go about troubleshootng this issue further?
    Has anyone else experieced this?
    What have you done to fix it?

    Hi,
    According to your description, I understand that all attachments in Outlook are opened slowly since updating Outlook 2003 to 2013. Please confirm whether all users encounter this issue. Also check whether the issue continues in cached mode and in OWA.
    Based on your post, I suggest we can try to disable the following add-ins to check whether the issue persists:
    Acrobat PDFMaker office com addin
    symantec endpoint protection outlook addin
    If there is any updates, please feel free to let us know.
    Thanks,
    Winnie Liang
    TechNet Community Support

  • Load balancing over two separate outside routers and two separate WAN Links

    Hi everybody,
    I have one 2851 setup with two separate ISP links and have it configured for failover with BGP.  It works great but doesn't load balance.
    Well now I have to new routers (3925's) to replace the single 2851 and I want to configure them to load balance over separate WAN links.
    Can someone help figure out the best approach to make this happen?  I would really appreciate it.
    Thank you,
    Thomas Reiling

    Disclaimer
    The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
    Liability Disclaimer
    In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
    Posting
    The "best approach", IMO, would be to use PfR (if your routers support it).

  • SQL Server Connection over WAN Link

    I am planning
    to setup a BlackBerry server and connect to a remote SQL Server over a
    WAN link with 150+ms ping time.  Is there a known tolerance for
    SQL server connection latency?  For example, I have been told by
    RIM that ping time for Exchange should be around 35ms so if it is
    higher, a BES should be placed next to the Exchange server.  Any reply would be greatly appreciated.

    There is no problem with slow connection :-)
    You might get lots of waits in the SQL side (most likly there will be lots of
    ASYNC_NETWORK_IO) which you can monitor using sys.dm_os_waiting_tasks and sys.dm_exec_requests. But if there is no disconnections then most small application will work OK
    [Personal Site] [Blog] [Facebook]

  • Transport dot1q vlan tagging over wan link

    Hi,
    I would like to transport 802.1Q vlan tagging over a wan link, is it possible ?
    I heard about l2tp V3...
    Best regards

    Hi,
    You would have to use a technology such as Ethernet over MPLS (EoMPLS) or VPLS. This technology is referred to as Layer 2 VPNs. You can get more info on this at the following locations:
    EoMPLS (part of the Cisco Any Transport over ATM suite):
    http://www.cisco.com/en/US/products/ps6646/products_ios_protocol_option_home.html
    VPLS:
    http://www.cisco.com/en/US/products/ps6648/products_ios_protocol_option_home.html
    Hope that helps - pls rate the post if it does.
    Regards,
    Paresh

  • Management traffic load over the WAN

    Management process(include monitoring and security) with the central WCS system will cause Management traffic over the WAN links.
    Can you tell me more about the traffic load over the WAN links if we will use it as only as Wifi detection and prevention system(inclue location and not for wireless services..for now).
    We will use 150 air-AP1000(lwapp)on AIR-MONITOR mode over the WAN and 4400 controllers one in each remote sites(10 sites).

    I think the following documents might provide you with some good information.
    http://www.cisco.com/en/US/products/ps6305/products_configuration_guide_chapter09186a008059c98b.html
    http://www.cisco.com/en/US/products/ps6305/products_configuration_guide_chapter09186a008059ca16.html

  • Why internal EIGRP flapping when a WAN link is flapping?

    I have router A and B running EIGRP in between. Router B has a WAN connection into the carrier.
    Recently the EIGRP neighboring between A and B was flapping. In the mean time the WAN link was flapping too.
    Router B was running BGP over the WAN link and redistributing BGP into EIGRP.
    Why the WAN link issue caused the EIGRP neighboring up and down?
    Thanks
    Gary

    When we attempted to ping the ISP's router will a full size MTU packet, the packet gets dropped. Any packets greater than 400 bytes gets dropped.

  • ZCC remote contol terribly slow over WAN links compared to RC via ZDM 7 or RDC

    I think the subject tells all. The connection is via a direct VPN
    connection of the remote controlling PC to the LAN of the controlled PC
    - so there is no proxy inbetween.
    I disabled encryption but that did not help much.
    Part of the problem seems to be, that Windows RDC and ZDM 7 remote
    control are able to saturate the WAN link during a page refresh,
    whereas the ZCC remote viewer only uses 1/4 to 1/2 of the link
    bandwidth at most.
    W. Prindl

    Correct.
    If you enable "Password Based" remote control in the RC policy, you can
    use that password to remote control the PC from virtually any VNC Client.
    Clearly this gets around some of the security features provided with ZCM
    Security, but allows for interoperation with other VNC Clients if you
    wanted to use them for some reason.
    On 5/14/2010 6:06 PM, kjhurni wrote:
    >
    > craig_wilson;1974693 Wrote:
    >> Password vs Rights based Security.
    >>
    >> Rights Based Security is what Novell provides on top of VNC for added
    >> security.
    >>
    >> Password Based Remote Control is VNC security, but Novell allows for
    >> central control of the password as well.
    >>
    >> Password Based Remote Control can be enabled or disabled via your
    >> Remote
    >> Control policy.
    >>
    >>
    >> On 5/13/2010 2:22 PM, W_ Prindl wrote:
    >>> Same question as you ?
    >>
    >>
    >> --
    >> Craig Wilson - MCNE, MCSE, CCNA
    >> Novell Knowledge Partner
    >>
    >> Novell does not officially monitor these forums.
    >>
    >> Suggestions/Opinions/Statements made by me are solely my own.
    >> These thoughts may not be shared by either Novell or any rational
    >> human.
    >
    > So with password-based security you can you "any" VNC viewer, provided
    > you enter the correct userid/password to gain access?
    >
    > With rights-based you have to use the one from ZCM?
    >
    > (Just checking to make sure I'm understanding correctly)
    >
    >
    Craig Wilson - MCNE, MCSE, CCNA
    Novell Knowledge Partner
    Novell does not officially monitor these forums.
    Suggestions/Opinions/Statements made by me are solely my own.
    These thoughts may not be shared by either Novell or any rational human.

  • User home directory on server over WAN link

    Hello all,
    I have a performance question about home directories. The situation is:
    - 3 locations, 3 servers (OS X server 10.4.7 (Xserves))
    - WAN connections are 1 Mbit/s
    - All clients running 10.4.7 (imac G5 1.6/1.8 GHz.)
    - User home folders are all located on one of the three servers
    Two locations are OD replicas from the first location.
    User home folders are located on the server at the location where they work most.
    Some users work 4 days at location A, and 1 day at location B or C.
    For simplicity let's say I have a user called A, with home directory located on server at location A.
    User A is now working one day at location B. User logs in successfully, but everything is very slow (1 Mbit WAN link).
    I really like the flexibility of server based home folders. Also the fact that there is no data on the local machines is very much appreciated (physical security, backup etc.). I was thinking about portable home directories, but that won't solve my problem, given the fact that all data needs to be copied once from location A to B (especially when users use different machines on the other location). Data will be stored on the local machines as well in that situation (but can be synchronized).
    It is of course possible to synchronize data from server A to B and C when a user logs off (rsync). Is there any way to tell OD that it should pick a user home directory based on the location where that specific user logs in? Disk space isn't really an issue.
    The performance is really awful using a 1 Mbit connection and upgrading the connections is not really an option (well maybe I could get it to 2 Mbit, but that won't solve this problem).
    Thanks for any advice.
    Jordi
    Powerbook G4   Mac OS X (10.4.7)  

    How about firewire harddrive or ipod-based home directories which the users could take to different offices with them?
    If not... I really think that your best option is to work to get Portable Home Directories working. Remember it is only the data that has been changed that is synced each time. You mention you are concerned about backup, but this will be done from the server after user data is sync'd there. The physical security worries can be taken take of by using open firmware passwords.
    Is there any way to tell OD that it should pick a user home directory based
    on the location where that specific user logs in?
    By using DHCP at each site to bind the clients you can force them to use the Home Diretory you specifiy at each site. But this sounds like a sync & backup nightmare to me and don't forget rsync will mangle your acl's and other meta data.
    hth,
    b.

Maybe you are looking for

  • How to write ABAP HR reports in ABAP web dynapro

    Hi All, How  to write ABAP HR reports in ABAP web dynapro? We can add HR REPORT CATEGORY in ABAP HR using logical database like PNP.How to add HR REPORT CATEGORY in ABAP Webdynapro ? Thanks.

  • Preparing Overhead Presentation

    I'm preparing an overhead presentation for this afternoon, using my 2.33 GHz MacBook Pro and the Apple-spec DVI-to-VGA video adaptor. Another organization is hosting the presentation, and a local government is supplying an ordinary VGA-style projecto

  • ITunes store will not load. Im at a loss

    For about 3 days now the iTunes store will not load. It merely reaches this point: +One Moment Please.+ +Connecting to the iTunes Store.+ Loading +If iTunes doesn't open, click the iTunes application icon in your Dock or Windows Task Bar.+ (note this

  • Extractor For AFS System [ Table /AFS/MARM & /AFS/MWKE & /AFS/MLGN2 ]

    Hi Guru, Exist a Extractor Standard for this table? for exmple i thinking for /AFS/MARM ( 0MAT_UNIT ?? ) I would like to implement a delta extractor using one of the usual method, for exmple by reading the table ( CDPOS / CDHR ) or using the BTE ( Tr

  • XSLT single elements to multi elements

    I need to transform the input on the left into the format on the right with a transformation in jdeveloper BPEL:        Coming In:                                Desired Output: <inputone>test1</inputone> ---------> <input attr="one">test1</input> <i