Page 3 of 3 FirstFirst 123
Results 21 to 28 of 28
  1. #21
    Join Date
    Jan 2004
    Posts
    66,391
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: Orders incrementing by 2

    Um ... if it "doesn't dynamically swap between them", then *when* does the 2nd server actually get used?

    I'm asking the question because I'm calculating the risk of overriding their skip-by-two configuration.

    If the 2nd server is never actually used, then there'd be no risk.

    So ... can they give you a highly-technical detailed explanation of *when* the 2nd master is ever used?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  2. #22
    Join Date
    Oct 2008
    Posts
    378
    Plugin Contributions
    0

    Default Re: Orders incrementing by 2

    I will ask them

  3. #23
    Join Date
    Oct 2008
    Posts
    378
    Plugin Contributions
    0

    Default Re: Orders incrementing by 2

    Their reply

    Thanks for getting back. I'm afraid that I cannot give you a full technical breakdown of the process involved as this is a core procedure used on our platform and as such it is protected information by the company. I was able to inform you of the process that was used to load-balance the system but the technical specifics cannot be divulged.

  4. #24
    Join Date
    Jan 2004
    Posts
    66,391
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: Orders incrementing by 2

    Quote Originally Posted by Congerman View Post
    as I have said previously this is a common occurrence on any servers that are load-balanced.
    Quote Originally Posted by Congerman View Post
    it is protected information by the company.
    "this is a common occurrence on any servers that are load-balanced" ... but yet "it is protected information by the company".

    Nice.

    Clearly they don't want to be helpful.

    Another host to add to the "don't use them" list.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #25
    Join Date
    Oct 2011
    Posts
    42
    Plugin Contributions
    0

    Default Re: Orders incrementing by 2

    Hi,

    I've just set up our new store with Register365/Namesco, one of the biggest providers in the UK. I've got exactly the same thing happening. Here's the tech support response:
    ===================

    Thank you for getting in touch with us about Hosting.

    1: The script you are trying to run does not work as our Database server is pre-configured, unfortunately we cannot install, remove or change any software/settings for you (including modifications to the php.ini file or changing the IIS security settings) as you are on a shared hosting platform and the software/configuration settings in place apply to the entire user base.

    2: The new Database servers are of a high-availablilty pair for resiliency, with master-master replication, so that if one goes offline, the other comes straight up.
    Auto-increment is set server-side to go up in 2s - odd on one server, even on the other. This prevents data collisions in auto-increment fields.

    For this reason we cannot modfiy the settings unfortunately.

    =====

    I really need to stay with these people for a while, at least in terms of the website. Are there any significant issues we will have to watch for? Is there anything I can do with our code to prevent them? I've never looked into running the website on one host and the database on another, but should we be looking at that?

    Thanks, as always.

  6. #26
    Join Date
    Oct 2008
    Posts
    378
    Plugin Contributions
    0

    Default Re: Orders incrementing by 2

    Hi, After a couple of months the incrementing by 2 each time was rectified on my shops. I do not know if my hosting agent changed their settings but all is good now. Sorry I cannot help with your situation. Good luck. I use myhostingcompany.co.uk

  7. #27
    Join Date
    Jul 2012
    Posts
    16,751
    Plugin Contributions
    17

    Default Re: Orders incrementing by 2

    Quote Originally Posted by David R View Post
    Hi,

    I've just set up our new store with Register365/Namesco, one of the biggest providers in the UK. I've got exactly the same thing happening. Here's the tech support response:
    ===================

    Thank you for getting in touch with us about Hosting.

    1: The script you are trying to run does not work as our Database server is pre-configured, unfortunately we cannot install, remove or change any software/settings for you (including modifications to the php.ini file or changing the IIS security settings) as you are on a shared hosting platform and the software/configuration settings in place apply to the entire user base.

    2: The new Database servers are of a high-availablilty pair for resiliency, with master-master replication, so that if one goes offline, the other comes straight up.
    Auto-increment is set server-side to go up in 2s - odd on one server, even on the other. This prevents data collisions in auto-increment fields.

    For this reason we cannot modfiy the settings unfortunately.

    =====

    I really need to stay with these people for a while, at least in terms of the website. Are there any significant issues we will have to watch for? Is there anything I can do with our code to prevent them? I've never looked into running the website on one host and the database on another, but should we be looking at that?

    Thanks, as always.
    My thought is that if the even entries of one server are seen on the server that provides odd entries and then the odd entries of the one appear back on the other server then the only time of trouble would be activity occurring during the transition from one server to the other where a new autonumber was being generated/retrieved.

    Overall it affects more than just the order number as there are several tables that record an autonumber. Generally speaking it will mean that the highest autonumber available by the server will be reached twice as fast, but the quantiity of those are already significantly high.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #28
    Join Date
    Oct 2011
    Posts
    42
    Plugin Contributions
    0

    Default Re: Orders incrementing by 2

    Thanks, our volume is low enough that I'm not worried about hitting the limits. In the earliest posts to this thread it sounded as if there might be more serious issues caused by it. But we can certainly cope with missing order numbers if we understand the source.

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. v154 Featured Products not showing anywhere, featured_id incrementing x 2
    By David R in forum Upgrading to 1.5.x
    Replies: 1
    Last Post: 18 Jul 2015, 12:39 PM
  2. incrementing the flat rate
    By cem1 in forum Addon Shipping Modules
    Replies: 1
    Last Post: 16 Aug 2011, 02:20 PM
  3. incrementing products_id
    By Kodam in forum General Questions
    Replies: 0
    Last Post: 14 Apr 2008, 02:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR