Nedotter.com valuation and analysis

Robots.txt Information
Robot Path Permission
GoogleBot /
BingBot /
BaiduSpider /
YandexBot /
Meta Tags
Title Ned Otter Blog | SQL Server DBA and Musician
Description I've dealt with SQL replication for decades, and in a sense, not a lot has changed. I mean this from a basic configuration and troubleshooting perspective, though it has in some ways been extended a bit through the years, for new SQL Server features (like In-Memory OLTP, Azure, etc.). Many refer to replication as the the Swiss Army Knife of SQL Server, and I can understand why, but with this "extreme flexibility" comes "extreme shortcomings", and this post will delve into some of the issues you should be aware of. Many have blogged about SQL replication, but Kendra Little (b|t) stands out – her posts are clear and concise, and you will always learn something from her. But despite having read all of her posts about replication, and those of many others, when I started my current role almost 3 years ago, I was woefully ignorant of many facets of the replication feature. This post is my effort to save you some of the pain and head scratching that I've endured! Gotcha #1: you want to go parallel for initial sync Much of the pain of SQL replication occurs when tables/articles are large. Setting up subscribers to receive terabytes of data requires changing some very specific things in very specific places, in order to have a chance of going parallel. Unfortunately, the out-of-the-box defaults for replication place you squarely in the single-threaded camp. The Snapshot Agent can be configured with a setting named maxbcpthreads that can make snapshot generation much faster by using parallel threads to generate the snapshot. The catch? It's ignored unless the sync_method for the publication is native. Now you might have looked at the docs and determined that in fact you're already getting native snapshots, because you are using the default sync_method of concurrent, but your snapshot will still be generated by a single thread with concurrent. In order to get parallel snapshot generation, you must have a sync_method of native and use the maxbcpthreads switch on the Snapshot Agent job step. You have been warned! Gotcha #2: Agent job naming sucks Deploying replication generates tons of SQL Agent jobs, especially if you use push subscriptions, and you have the distribution database on the publisher. If you have long publication names (or even if you don't), when it comes time to look for a specific job, it can be difficult to discern which ones are for generating snapshots, which are for distribution, etc. That's why I always rename my replication jobs according to function/category. I append "_Snapshot" or "_Distribution" to the relevant jobs, using a script. Doing this might make it impossible from other places in the UI to bring up the proper job when drilling down in Replication Monitor, but I don't use the monitor for that - it's a sacrifice I'm willing to make. Gotcha #3: Password rotation can break replication Most companies have a password rotation policy for domain users, as well as domain service accounts. If you use a domain account for anything having to do with replication agent security, obviously the SQL Server environment will have no knowledge of this password rotation. So while using domain accounts is sometimes unavoidable when using replication, the runbook you use for password rotation should include this often-overlooked area. Gotcha #4: Replication cleanup issues The default batch size for replication cleanup is 5,000 records. If you are in charge of a very busy system, the replication cleanup process will never catch up, and your distribution database will continue to grow. Depending on where you have the distribution database located, this could affect your production databases, because the drive can run out of space. The cleanup job runs often by default, and so if you change the batch size to something larger, it might cause blocking in your system. A different approach – if you have the storage to handle it – is to schedule the cleanup job so that it doesn't run at all during the week, and use a large batch size when it runs on the weekend (assuming you have a maintenance window to actually do this type of work on weekends). Gotcha #5: Not likely to get compression for your snapshots The rules around getting compression for snapshots are baffling and mysterious. There is some "2GB per file" rule that I can never seem to find a way to have properly observed, and so I've never been successful at creating compressed snapshots. Mind you, generating compressed snapshots is not likely to be any faster than uncompressed snapshots, and in fact is likely to be slower. But if you have not-so-great bandwidth, then it would be great to not send all that data across the wire. The documentation for snapshot compression is located here (search for "Compressed snapshots"). Gotcha #6: Initializing from a backup will probably not float your boat Now before you comment below and tell me that you've read the paper written by Robert Davis and Kenneth Fischer about initializing from a filegroup backup, most databases in the wild have tons of user tables on the PRIMARY filegroup, and so are not really candidates for what's described in that paper. The main issue is that you can't really recover just a slice (or multiple slices) of your database to initialize a subscriber. You have to install PRIMARY plus the filegroups that you're interested in, and that's too large 99% of the time. Or you restore your entire database backup, then delete what you don't want. But you'll have to disable/remove Foreign Keys, etc. Other than for demos and/or really small databases, I don't see how this path will work. Gotcha #7: No easy/good way to filter horizontally if > 1 table is involved See my thread with the late, great Robert Davis here. Gotcha #8: Log Reader woes The log reader will sometimes stop running, and if that happens, you won't receive any warning/error, unless you're polling for that. Perhaps a better way is to add Retry attempts to the job step. That will work, but you'll have to remember to re-add that retry for each log reader when you build a new environment. Gotcha #9: DR sucks with SQL replication How will you handle setting up replication in a DR environment? One possibility is to automagically script the entire PRD replication environment on some type of schedule, and then modify the server names in those scripts for deployment to DR. But no matter how you handle deploying replication to DR, you will still have to initialize the new DR subscribers, and as described in Gotcha #1, that can be painful. Gotcha #10: Rows deleted at the subscriber will break distribution For transactional replication, I can't think of a good reason that writes should be allowed on subscription databases. But if they are allowed, eventually someone will delete a row that appears in the distribution database, and when the change to that row is attempted at the subscriber, it will of course fail. And all of the rows behind it in the distribution database will also fail to be distributed. You can work around this – even on a temporary basis, just to get past it – by choosing a different profile for the Distribution Agent. I believe they even have some that are canned for getting past this specific error. It will allow your distribution database to stop growing, but unless you want to leave this profile in place permanently, you'll eventually have to reinitialize at least the offending article in the relevant publication, and switch back to the default/former profile. Gotcha #11: Nothing sucks worse than schema changes to replicated tables Why? Because they force you to do the following: remove the table from replication make the schema change at the publisher add the table back to the subscription reinitialize the subscriber(s) (that's right, you're back to Gotcha #1 if your tables are large) If done properly, the snapshot you generate will only include the table you removed from the subscription and added back. But if that table is large, it can still be painful. Also, It's easy to make a mistake when removing a table/article from a subscription. Of course, using AGs removes this hassle, because schema changes will simply flow through to secondary replicas via the log blocks that are sent to them (your send and redo queues will explode for large tables…). But hey, if you could be running AGs, you'd probably never have deployed replication in the first place. Gotcha #12: CI/CD woes Thought your CI/CD pipeline meant "push button" deployments? Think again, because CI/CD has no idea that you have tables that are replicated. This causes DBAs to get involved with deployments due to Gotcha #11. Gotcha #13: Monitoring for replication errors/latency There's nothing out-of-the-box that I'm aware of that properly handles monitoring the facets of transactional replication that most shops would be interested in. For example – it might be fine during the day to have 10 million rows pending, but at night when ETL jobs are executing, that threshold might need to be increased to 20 million. But what if the number of pending rows was within the allowable threshold but did not decrease after 20 minutes? Or after 40 minutes? Every shop will likely want to tweak this kind of monitoring, but you'll probably have to roll your own and execute it across all environments where replication is deployed, and take appropriate action. Sometimes, everything can look fine – no latency – but replication is "down", because the log reader is down. My point is there are many things that can contribute to a replication failure. Kendra has an excellent post on monitoring replication here. Be forewarned that any script that literally counts the number of undistributed commands can be very slow in doing so. Imagine an environment where several publications have millions of rows pending in the distribution database - it would probably take longer to count them all than you have as a threshold for monitoring latency. That's why when I had to solve this problem, I cycled through each publication, and stored the out put of calling sp_replmonitorpendingcmds to a table, and then alerted if required. Gotcha #14: Immediate_sync is misunderstood Most DBAs don't really understand what this setting is used for, and that out-of-the box settings for it can cause you to have to….reinitialize. If a subscription is set to sync immediately (immediate_sync = 1, which is the default), the data is kept in the distribution database for a specific period of time (72 hours by default). This allows new subscribers to be synced "immediately", without having to create a new snapshot. But if a subscriber goes offline for too long, you will have to…..reinitialize. In my current role, I set immediate_sync to 0 for all subscriptions. I've only got 2 subscribers, and I'm ok with having to generate a new snapshot for a new subscriber (which never happens). But I don't want SQL server telling me when I have to reinitialize. Mohammed Moinudheen wrote an excellent post here about retention periods for replication. Mohammed Moinudheen also wrote an excellent post here about immediate_sync. Gotcha #15: Replication takes precedence over AGs, by default If you replicate a subset of data from a database that belongs to an asynchronous AG, you should know that the default behavior is that the Log Reader won't harvest transactions to send to subscribers that have not yet been sent to the AG secondary replicas. That means your production database transaction log can't be cleared of these transactions, and will continue to grow, potentially affecting your production environment. You'll need Trace Flag 1448 to solve this, and luckily it takes effect immediately. Andy Mallon wrote an excellent post on TF 1448 here. TF 1448 only applies to async replicas. If you're running synchronous replicas, the default behavior still applies – subscribers don't receive new data until the sync replicas have been hardened. More "gotchas" Undocumented "gotchas" of transactional replication by Robert Davis can be found here. I'm sure there are tons more gotchas for transactional replication, but these are the most glaring I've tripped across.
Keywords sql server,always encrypted
Server Information
WebSite nedotter favicon www.nedotter.com
Host IP 143.95.43.71
Location Los Angeles, California, United States
Related Websites
Site Rank
More to Explore
needke.cn
nhz.net.cn
niangjiusuo.cn
niceupway.com
nihaogubei.cn
ningpai.com
njjqmu.com
nohmaleather.com
noiotn.com
npsyzx.net
tbmcg.mx
techcampus.com
Nedotter.com Valuation
US$7,181
Last updated: Sep 13, 2022

Nedotter.com has global traffic rank of 11,705,773. Nedotter.com has an estimated worth of US$ 7,181, based on its estimated Ads revenue. Nedotter.com receives approximately 262 unique visitors each day. Its web server is located in Los Angeles, California, United States, with IP address 143.95.43.71. According to SiteAdvisor, nedotter.com is safe to visit.

Traffic & Worth Estimates
Purchase/Sale Value US$7,181
Daily Ads Revenue US$3
Monthly Ads Revenue US$118
Yearly Ads Revenue US$1,436
Daily Unique Visitors 262
Note: All traffic and earnings values are estimates.
Traffic Ranks
Global Rank 11,705,773
Delta (90 Days) 0
Most Popular In Country N/A
Country Rank N/A
DNS Records
Host Type TTL Data
nedotter.com A 14400 IP: 143.95.43.71
nedotter.com MX 14400 Priority: 0
Target: nedotter.com.
nedotter.com NS 21600 Target: ns2.asmallorange.com.
nedotter.com NS 21600 Target: ns1.asmallorange.com.
nedotter.com SOA 21600 MNAME: ns1.asmallorange.com.
RNAME: root.localhost.localdomain.
Serial: 2022030702
Refresh: 86400
Retry: 7200
Expire: 3600000
Minimum TTL: 86400
HTTP Headers
HTTP/1.1 200 OK
Date: Tue, 13 Sep 2022 18:17:22 GMT
Server: Apache
Link: <http://nedotter.com/wp-json/>; rel="https://api.w.org/"
Upgrade: h2,h2c
Connection: Upgrade
Vary: Accept-Encoding
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8

Nedotter.com Whois Information
   Domain Name: NEDOTTER.COM
   Registry Domain ID: 58235586_DOMAIN_COM-VRSN
   Registrar WHOIS Server: whois.godaddy.com
   Registrar URL: http://www.godaddy.com
   Updated Date: 2022-09-01T22:20:18Z
   Creation Date: 2001-02-06T03:05:37Z
   Registry Expiry Date: 2027-02-06T03:05:37Z
   Registrar: GoDaddy.com, LLC
   Registrar IANA ID: 146
   Registrar Abuse Contact Email: abuse@godaddy.com
   Registrar Abuse Contact Phone: 480-624-2505
   Domain Status: clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited
   Domain Status: clientRenewProhibited https://icann.org/epp#clientRenewProhibited
   Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited
   Domain Status: clientUpdateProhibited https://icann.org/epp#clientUpdateProhibited
   Name Server: NS1.ASMALLORANGE.COM
   Name Server: NS2.ASMALLORANGE.COM
   DNSSEC: unsigned
   URL of the ICANN Whois Inaccuracy Complaint Form: https://www.icann.org/wicf/

Domain Name: NEDOTTER.COM
Registry Domain ID: 58235586_DOMAIN_COM-VRSN
Registrar WHOIS Server: whois.godaddy.com
Registrar URL: https://www.godaddy.com
Updated Date: 2022-01-06T08:46:49Z
Creation Date: 2001-02-05T22:05:37Z
Registrar Registration Expiration Date: 2027-02-05T22:05:37Z
Registrar: GoDaddy.com, LLC
Registrar IANA ID: 146
Registrar Abuse Contact Email: abuse@godaddy.com
Registrar Abuse Contact Phone: +1.4806242505
Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited
Domain Status: clientUpdateProhibited https://icann.org/epp#clientUpdateProhibited
Domain Status: clientRenewProhibited https://icann.org/epp#clientRenewProhibited
Domain Status: clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited
Registry Registrant ID: Not Available From Registry
Registrant Name: Registration Private
Registrant Organization: Domains By Proxy, LLC
Registrant Street: DomainsByProxy.com
Registrant Street: 2155 E Warner Rd
Registrant City: Tempe
Registrant State/Province: Arizona
Registrant Postal Code: 85284
Registrant Country: US
Registrant Phone: +1.4806242599
Registrant Phone Ext:
Registrant Fax: +1.4806242598
Registrant Fax Ext:
Registrant Email: Select Contact Domain Holder link at https://www.godaddy.com/whois/results.aspx?domain=NEDOTTER.COM
Registry Admin ID: Not Available From Registry
Admin Name: Registration Private
Admin Organization: Domains By Proxy, LLC
Admin Street: DomainsByProxy.com
Admin Street: 2155 E Warner Rd
Admin City: Tempe
Admin State/Province: Arizona
Admin Postal Code: 85284
Admin Country: US
Admin Phone: +1.4806242599
Admin Phone Ext:
Admin Fax: +1.4806242598
Admin Fax Ext:
Admin Email: Select Contact Domain Holder link at https://www.godaddy.com/whois/results.aspx?domain=NEDOTTER.COM
Registry Tech ID: Not Available From Registry
Tech Name: Registration Private
Tech Organization: Domains By Proxy, LLC
Tech Street: DomainsByProxy.com
Tech Street: 2155 E Warner Rd
Tech City: Tempe
Tech State/Province: Arizona
Tech Postal Code: 85284
Tech Country: US
Tech Phone: +1.4806242599
Tech Phone Ext:
Tech Fax: +1.4806242598
Tech Fax Ext:
Tech Email: Select Contact Domain Holder link at https://www.godaddy.com/whois/results.aspx?domain=NEDOTTER.COM
Name Server: NS1.ASMALLORANGE.COM
Name Server: NS2.ASMALLORANGE.COM
DNSSEC: unsigned
URL of the ICANN WHOIS Data Problem Reporting System: http://wdprs.internic.net/

without notice.