Starting new client from scratch with large db takes forever

I found a similar thread on the forum but I think my situation is a little different. I'm using the pure C API instead of Java for example.
What I currently have running is a berkeley DB database with 7 million records. There is also a secondary database used as an index on a specific key. New records are inserted about one record per second on average. Records and keys are small, 20 and 120 bytes. The primary db is 750MB in size and the index about 500.
The master runs a 'master-db' process that owns the database and a 'server' process that opens the database read-only to expose it's data to a simple network service. I currently have about 1000 queries per second on this. It's implemented io event driven (using boost.asio) and uses about 10% CPU time on a single thread.
The slave runs a 'slave-db' process that is configured as a slave replica node. It also runs the same server process and deals with about the same amount of hits.
I'm really happy with this setup, it works well.
Except in one case: when I need to sync a new slave with an empty database. This barely ever works ok and requires many manual restarts.
What I see is that the slave tries to transfer two large sets of pages. One set is 180.000 and the other 120.000. I assume that these two are for the two databases that I have.
What happens is that the slave gets about 140.000 pages in less than a couple of seconds (gigabit ethernet) but then stalls either completely or gets the remaining 40.000 pages at a 1 page/second rate. I don't see anything that looks like an error in the logs. Also no queue limit warnings.
I've noticed two things that help: stopping the master server process (so that no updates are done to the database) or just manually restarting the slave a couple of times so that eventually gets all pages. Both are not ideal of course.
Two questions:
Does this sound familiar to anyone?
Are there alternatives to the initial sync? Would it be possible to for example rsync the main db home to a slave and use that as a starting point instead?
S.

Hi Stefan,
I recall that we talked previously about the "queue
limit exceeded" problem. But you say that is not
happening this time. I take it you installed the bug
fix patch?No I did not install the patch actually. Do you think it could be relevant for issues besides the 'queue limit exceeded' problem or was it a very specific fix for just that?
Are you still using Replication Manager in a 4.6
version of Berkeley DB?Yes. 4.6.21.
>
What you describe is indeed strange, particularly the
part where stopping updates on the master seems to
clear up the problem. I'll make a test setup and just let it run for a much longer time. So far I've been waiting and looking at database files to change. Maybe I've been too impatient. (I did look at iostat output to see whether there was disk activity though)
Usually it's the other way
around: receiving an update from the master "kicks"
the replica into requesting any missing log records.
Can you post a representative sample of what the
verbose output at the replica looks like during the
time it's getting only about a page per second (and
especially what it looks like after stopping the
master updates)?I'll try, but the log files are HUGE and I will have to find time to analyze them really properly. So far I've only grepped for possible errors.
How do I identify the 'boundaries' in the log for one replication task?
>
You can indeed do a "manual" hot backup if you want
to avoid the automatic internal init. See the
Reference Guide page entitled "Initializing a new
site."Hm. This looks good. I had missed that page. I'm actually more fond of this approach for my specific use-case. It looks easy to automate. If I can't figure out the real problem with the auto-sync then I'll probably switch to (automated) manual.
S.

Similar Messages

  • I want to upgrade my old airport express to the new express. Can I just switch out the old for the new or must I delete the old network first and start from scratch with the new express?

    I want to upgrade my old airport express to the new express. Can I just switch out the old for the new or must I delete the old network first and start from scratch with the new express?

    It is not necessary to delete your old wireless networks first, but doing so may eliminate confusion. If you wish to do that, open System Preferences > Network, and select Wi-Fi from the left column. Click the Advanced... button, then select your old wireless networks and delete them with the "–" (minus) button. Make sure the "Remember networks this computer has joined" remains checked.
    OK then Apply.
    This prevents your Mac from searching for your previous network which will no longer exist.
    A new Express creates an open wireless network that you must select before you can configure it. It appears in your Wi-Fi menu like this:
    Select it. AirPort Utility will load and walk you through its configuration.
    Edit: If you are really using OS X 10.5.1 as shown in your profile, the above screenshot is not applicable. Instead, select the network called "Apple network nnnnnn" and then launch AirPort Utility.

  • I have an Ipad first generation with IOS 5.1.1. and I have just got a new ipad mini. Should I use the back up of the old Ipad from Itunes copy to configure the new one, or it is better to configure the new one from scratch?

    I have an Ipad first generation with IOS 5.1.1. and I have just got a new ipad mini. Should I use the back up copy of the old Ipad from Itunes to configure the new one, or it is better to configure the new one from scratch?

    Contrary to the opinion above, I see no reason whatsoever why you can't set up the new iPad from the backup of the old one. Obviously you will have app updates to make and complete and that sort of thing, but if you want to retain all of your app data and device settings (some of which will change because of the updated iOS), I would certainly restore from the backup first.
    If you find that to be problematic, you can always start all over again.

  • Hi Friends... I'm trying to delete a back-up file on mu TC but I get the message "The operation could not be completed because the item "bands" is in use. I'd like to start the Back from scratch, could help me out with deleting the current file?

    Hi Friends...
    I’m trying to delete a back-up file on mu TC but I get the message “The operation could not be completed because the item “bands” is in use. I’d like to start the Back from scratch, could help me out with deleting the current file?

    Sorry, I am very confused. I asked the following question....
    Is this the only backup file on your Mac, or do you have other backup files and data on the Time Capsule disk?
    The answer that you gave was....
    This is the only one
    Now you are saying that....
    But I have lots of other files on Time Capsule! The back up file is only one of them.
    Can you clarify, please?

  • How to create Web Service Client from wsdl with digital signature?

    Please, help me to create Web Service Client from wsdl with digital signature. I know create Web Service client from wsdl file and I know how to add digital signature to XML with jwsdp, but I don't know how to do it together.
    Thanks.

    I'm handling security wit JAX-WS handler. So I insert "manually" ws-security tag and I encrypt (and sign) message parts.
    On client side, all works fine, but on server side I obtain:
    ---Server Inbound SOAP message---|#]
    Decrypting message and rebuilding Valuees... |#]
    Starting decrypt|#]
    . dectypted.!
    --found following string: <ns1:addiziona><num1>80</num1><num2>22222</num2></ns1:addiziona>|#]
    ...MESSAGE Restored.|#]
    <?xml version="1.0" ?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:ns1="http://calculator.me.org/" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><soapenv:Body><ns1:addiziona><num1>80</num1><num2>22222</num2></ns1:addiziona></soapenv:Body></soapenv:Envelope>|#]
    Error in decoding SOAP Message
    Error in decoding SOAP Message
            at com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.toInternalMessage(SOAPXMLDecoder.java:89)
            at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.toMessageInfo(SOAPMessageDispatcher.java:187)
            at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher$SoapInvoker.invoke(SOAPMessageDispatcher.java:571)
            at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:145)
            at com.sun.xml.ws.server.Tie.handle(Tie.java:88)
            at com.sun.enterprise.webservice.Ejb3MessageDispatcher.handlePost(Ejb3MessageDispatcher.java:160)
            at com.sun.enterprise.webservice.Ejb3MessageDispatcher.invoke(Ejb3MessageDispatcher.java:89)
            at com.sun.enterprise.webservice.EjbWebServiceServlet.dispatchToEjbEndpoint(EjbWebServiceServlet.java:178)
            at com.sun.enterprise.webservice.EjbWebServiceServlet.service(EjbWebServiceServlet.java:109)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
            at com.sun.enterprise.web.AdHocContextValve.invoke(AdHocContextValve.java:100)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:71)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
            at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    Caused by: javax.xml.ws.soap.SOAPFaultException: Cannot find the dispatch method
            at com.sun.xml.ws.encoding.soap.SOAPDecoder.raiseFault(SOAPDecoder.java:674)
            at com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.decodeDispatchMethod(SOAPXMLDecoder.java:152)
            at com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeBodyContent(SOAPDecoder.java:337)
            at com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeBody(SOAPDecoder.java:327)
            at com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeEnvelope(SOAPDecoder.java:250)
            at com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.toInternalMessage(SOAPXMLDecoder.java:81)
            ... 29 more
    |#]
    --->handleFault O_o<---|#]If you have any idea for solving my problem, then I can post my simple example :(
    Bye!

  • Messages - missing 'Start New Conversations From'

    Have an iPhone 4 that I am attempting to use without cellular service.
    Am able to use Facetime but am having a problem with Messages.
    In the Settings > Messages > Send & Receive the phone does not display the 'Start New Conversations From' section.
    I am unable to send from Messages. I assume these two items are related.
    I've tried resetting the phone, using a different apple id / icloud account, all to no avail.
    Any ideas?
    TIA

    This worked for me.  Turn off iMessage in Settings---> Messages. Then turn off iPhone. Restart iPhone then turn iMessage back on.   The phone number should reappear.

  • IMessage: "Start New Conversations From" setting is ignored

    In my iMessage settings, I have the option set to start new conversations from my email address instead of my phone number. I don't want anyone having my phone number, so this is a VITAL feature for me.
    The problem is that the setting is IGNORED! New conversations are in fact coming from my phone number. I have tried changing the setting back and forth, even wiped my phone and started from scratch, and still, new conversations come from my phone number instead of my email address.
    How can I get iMessage to acknowledge the setting and start new conversations from my email address?
    Thanks!

    This worked for me.  Turn off iMessage in Settings---> Messages. Then turn off iPhone. Restart iPhone then turn iMessage back on.   The phone number should reappear.

  • Starting new threads from a servlet

    Hi
    I read somewhere that starting new threads from a servlet is not supported in the future releases of J2EE .
    Any one aware of this.
    I have a listener program started as a new thread from the init method of a servlet which is set to load on startup.
    I have to think about another way to do this if this is not suppported in the future releases
    any comments

    Dr clap
    Actually I was getting some warning messages in my websphere server console when I tried to make JDBC connections from the thread I opened in the servlet.
    Everthing works fine but with the warning messages,
    Then someone from IBM answered me in one of the forums quote
    Cause: These messages are being produced due to an
    "unsupported" environment. When application is
    spinning its own threads from an EJB, spinning a
    thread and accessing a database is not supported (per
    the J2EE specification). One exception to this rule is
    if a Servlet is spinning its own threads and accessing
    a database. The J2EE specification is not clear on
    this, so WebSphere Application Server 5.0 must allow
    for it at this time. IBM is working with Sun to
    clarify this in the specification, so eventually (i.e.
    J2EE 1.4) spun threads from a Servlet accessing a
    database outside of a transaction will not be
    supported either.
    Since we don't want to promote the usage of these
    "naked" threads accessing databases, we are producing
    the warning messages. Although they may be filling up
    the logs, we feel that these are necessary to warn the
    user that they are doing something not in-line with
    the intended usage. Customer should consider changing
    their application to comply with the
    J2EE specification.
    """

  • TS4268 how to get "start new conversations from" on a iphone 4

    when i go into imessage and to send and recieve it only comes up with : You can be reached by iMessage at: then my phone number and email and then it says add an email..   How do I get it to say : Start new conversations from. Right now when I send a message it shows up as my email even though my email isnt selected my phone number is!!!. so my friends dont reply cause they dont know my email. i have a i phone 4 and am very frustrated someone please help me!

    Download previous purchases from the iTunes Store - Support - Apple

  • HT5538 If there is no "start new conversations from", what's wrong then? What should I do?

    I'm getting really tired of chat with my friends from my email, and I can't choose my number in "send and receive". There is no "start new conversations from"
    please help me, i've tried everything

    I would turn imessage off, then
    Hold down the Sleep/Wake button and the home button together until the apple logo appears (ignore the ON/OFF slider) then let both buttons go and wait for device to restart (no data will be lost).
    After that I would turn imessage back on and try to set it like you want.  Make sure you have yourself correctly entere in the contacts app, make sure you have your phone number entered in settings/phone/my number and in have your information entered in settings/general/siri under my info

  • Add telephone number to Start new messages from

    My wife and I both have iphone and we have an ipad. On messaging from the ipad, we would like to have both numbers available to "Start new Messages from" How do i add another number to the ipad in that area?

    Actually, it is possible, but I find that it causes more problems than its worth - for me and my wife anyway. I should qualify this by saying that as long as all of the iPhone numbers are associated with one shared Apple ID, it's possible to do this.
    Settings>Messages>Send & Receive at>You can be reached by iMessages at> Check the phone number that you want to start the conversation from in there. Of course, the phone number has to be listed in there in the first place and you have to remember to change it every time you each want to shows your own number.
    This should explain to you how to add all of your phone numbers if the are not already listed in there.
    http://support.apple.com/kb/HT5538
    Basically, you have to sign out of Messages on all devices, then sign in again on the phones to be able to add the numbers to the iPad.

  • IMessage randomly starts new conversation from email address

    My wife's phone has been having this problem for a while - both on her iPhone 5, and on her new iPhone 6.
    In the settings for iMessage, it says she can be reached by iMessage at ___, and then lists her Verizon cellular number, and her iCloud email address. Under "start new conversations from" it lists her Verizon cellular number, and her iCloud email address, with the phone numbering having a check mark.
    The issue: some iMessages she sends me will be from her phone number, and some from her email address. There appears to be no rhyme or reason to where the  iMessage originates. The only clue I can decipher is it appears that when she sends photos, it might be coming through her email address, but I can say that's for certain.
    Any idea what the cause is?

    My wife's phone has been having this problem for a while - both on her iPhone 5, and on her new iPhone 6.
    In the settings for iMessage, it says she can be reached by iMessage at ___, and then lists her Verizon cellular number, and her iCloud email address. Under "start new conversations from" it lists her Verizon cellular number, and her iCloud email address, with the phone numbering having a check mark.
    The issue: some iMessages she sends me will be from her phone number, and some from her email address. There appears to be no rhyme or reason to where the  iMessage originates. The only clue I can decipher is it appears that when she sends photos, it might be coming through her email address, but I can say that's for certain.
    Any idea what the cause is?

  • IMessage, Start new conversations from number missing?

    I sign in with my Apple-ID. But then apperienlty you can choose which you will start new conversations from, hotmail or number, but that does not appear for me? Settings ---> Messages ---> Send and recieve.       PLEASE HELP ME

    This worked for me.  Turn off iMessage in Settings---> Messages. Then turn off iPhone. Restart iPhone then turn iMessage back on.   The phone number should reappear.

  • TS4268 Missing Phone Number at "Start new conversations from"

    How come there is missing of the phone number at the "Start new conversations from:" inside Settings -> Messages -> Send & Receive" and only have the e-mail address but both of the phone number and e-mail address under "You can be reached by iMessage at:", please advise how to add it back ?

    Yes, I have solved it.  You could try to go from Settings -> Messages, turn the iMessage from ON to OFF, then you switch off your iphone and turn it on; go back to Settings -> Messages, change the iMessage from OFF to ON, then switch off your iphone and turn it back on, go to check whether you could see or add back the phone number assoicated with the iMessage.   Good Luck !

  • Why do v need 2 generate new smartform from scratch when v have a standard

    hi experts
    why do v need 2 generate new smartform from scratch when v have so many standard smartforms can any one explain in detail the scenario where v have 2 do that
    thanks
    bhanu

    Hello Bhanu,
    Standard smartforms are for standard SAP applications.
    Every client will customise standard SAP to suit their own requirements. So if there is a requirement specific to the cleint, they can ask us to develop a custom Smartform.
    Award points if found useful.
    Regards
    Indrajit.

Maybe you are looking for

  • Getting general error when saving site using "create PDF from"

    I'm using Adobe Acrobat Professional 8.0.0 for Mac, trying to save websites. This started working fine, but I had to shut down in the middle of a site being saved. Now when I try to save a site  using Web Capture/create PDF from I get a "general erro

  • HT204291 cannot mirror imac, only extend, any advice please?

    Imac, when trying to mirror the screen to my apple tv, it automatically reverts back to extended desktop immediately.

  • How Do I Import Outlook Express Address Book?

    I have a PC running WXP using Outlook Express as a mail client. And, I have a MAC that I'm trying to get email set up on. I'm trying to get completely off WXP as a home computing environment. Accordingly, I'd like to import the Outlook Express addres

  • How to not display radio buttons in the select many shuttle component

    Hi all, af:selectManyShuttle is a true nice component. For business / UI ergo reasons I've decided to not display the radio buttons before each item. There's no option to do that. Is it possible ? How ? Regards Luc-

  • Error in uploading prints

    I am consistently running into errors when uploading my prints to Apple. I never used to have this problem, but now I can only load a few pictures before I get this message. It says to check my network connection? Anyone know a quick fix for this? My