SQL Replicator stops syncing in both Live or Scheduled modes, 18.1

SUGGESTED

Hey everyone,

First time poster here because we are in desperate need for assistance. Here's the rundown...

- We had been using Sage 17.1 for 2 years until Nov. 2019. With it, we have the SQL Replicator running all the time, and though  "Scheduled" mode was the only option with 17.1, it would replicate close to real time (every 15 mins best guess). I did not set this up, but it ran beautifully for 2 years with no issues.

- We use replicator to send PSQL data to a SQL database that we run BI reports off of via ODBC to gather important accounting information.

- We upgraded to Sage 18.1 in Nov., at which time, Sage added the "Live" replication option. I thought this was weird because ours of seemingly live already, but based on Sage's recommendation, we set the replicator to "Live" replication.

- Since this upgrade, we've had NOTHING BUT PROBLEMS with the replicator. At first, we found it failed to replicate the database fully, and we were missing data. After a week and endless hours of working with Sage support, we successfully rebuilt the SQL database and got replication to work Live. After about a week, we found replication would randomly stop and we'd have to manually restart the replication service (which takes up to 60 mins to fully come back) multiple times a day.

- We have since tried to change it to Scheduled replication mode and have it run every 30 mins, and this worked for a day, then all of the sudden, it stops working again. The odd thing about this setup is that it will try to sync every 30 mins, but not always get data into SQL. Sometimes the sync works, other times, it does not. For example, yesterday, no new data made it into SQL, but today as of 9:30am, things finally started to populate. The replicator sync logs show NO ERRORS...

Our goal is to replicator our changes Live, maximum amount of wait time being 30 mins for new changes. Does anyone have any recommendations? Anyone else experiencing this headache?

Steven

Parents
  • 0

    Steven,

    I would be interested to see what responses you can get from this.  We tried the replicator for the first time in Version 18 in Live mode, and I had to kill it.

    For us, it was completely locking up the SQL instance, which is well overpowered for the task.  The Sage instance showed no noticeable performance hit, but if the synchronization was in the running state, we couldn't login to the SQL box anymore.  If I disable the synchronization, the server immediately returns to its normal state.

    In the meantime, we have fallen back to our SSIS packages to synchronize data between Pervasive and MSSQL, but I was hoping that I would be able to retire the maintenance of those tools with the Live feature from Timberline.

    Here's hoping that we can get some answers on what is happening under the covers of this particular tool.

    Thanks,

    Jay

  • 0 in reply to Jay Soares

    Hello Jay,

    Could I ask what you are referring to with the SSIS packages as an alternate to Sage SQL Replicator? 

    Thanks

Reply Children
  • 0 in reply to Jeff Rudacille
    SUGGESTED

    Jeff,

    SSIS stands for SQL Server Integration Services.  If you have a license for Microsoft SQL Server, it is a subcomponent that you can use.  Ultimately, it lets you create data pipelines between a source and destination system.  It's a tool that I have used for years building Business Intelligence solutions.

    It can be a bit of a difficult solution to learn at first, but I like the flexibility that it offers.  Basically, I use the ODBC connector as a source, I perform different tasks in the middle like adding tracking tokens and reporting on statistics, and then I use an OLEDB destination to point back to my MSSQL instance.

    It was a solution that I built 3-4 years ago that has been extremely performant, and has only gotten better as Sage has improved the processing performance of the ODBC connector.  One of the other reasons that I chose it is that it can batch process. If you have very large tables, which we do, then it avoids having to load the entire source table into RAM to perform the synchronization.

  • 0 in reply to Jay Soares

    Thanks Jay.  I was afraid it was something specific to SQL licensing.  We are not licensing for SQL and trying to pull this off with a SQL Express instance.  I am seeing the same issue as you in that the SQL Instance is "off line" when replication runs so that eliminates any chance of using live and really limits the actual replications capability to night time when no one would need it.  As I also mentioned in another post I am not even sure it is replicating the data despite the log showing as such. I have to test that a bit further though. 

  • 0 in reply to Jeff Rudacille

    Jeff,

    I was able to confirm that replication is in fact taking place, and it works properly, except for the resource hit.  If I turn it off, and then go and query the records in the MSSQL instance, the data is all there.  The downside is that as soon as I turn on live mode, I can no longer connect to the instance at all.

    Our total database is over 50GB, so we have a large instance, but it is pretty strange that it is completely consuming 100% of the resources on the MSSQL box 100% of the time if it is running and then immediately frees up those resources as soon as I disable the job.  Since my CPU is basically pegged, I cannot run a Profile to see exactly what is hitting the box to try and troubleshoot and narrow down the issue further.

    Here's hoping they can shed some light on the situation.

  • 0 in reply to Jay Soares

    Jay,

    In my case I have not routed anything to use the SQL data yet and was just looking at the file level time stamps of the SQL Database not changing for my wonderment if whether any new data is being replicated over.  I am going to try and point a report to it this weekend and see if the data is updated.   In my case I am not having an issue with CPU on the SQL server vs. the whole database literally goes off line when a replication is running.  If I have an odbc connection to it pre replication I can see the data but during replication the database is not available and I cannot connect to it until the replication is done.  Each replication takes 45 min for my approx. 8GB Pervasive DB.  I did see a note somewhere in Sage's documentation stating that the DB is "unavailable" during replication. 

  • 0 in reply to Jay Soares

    One other thing I wanted to add to this thread is that when watching the non live replication's take place it goes through the "Upgrading database" process each time.  That is surprising to me and suggests an issue with that alone.