If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Orders incrementing by 2

Orders incrementing by 2

Started by congerman on 18 May 2013, 10:48 AM · Views: 1,859

Results 21 to 28 of 28
18 May 2013, 8:43 PM
#21
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #21 by drbyte

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.

18 May 2013, 8:47 PM
#22
congerman avatar

congerman

Zen Follower

Join Date:
Oct 2008
Posts:
392
Plugin Contributions:
0

Post #22 by congerman

I will ask them

18 May 2013, 9:22 PM
#23
congerman avatar

congerman

Zen Follower

Join Date:
Oct 2008
Posts:
392
Plugin Contributions:
0

Post #23 by congerman

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.

19 May 2013, 4:04 AM
#24
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #24 by drbyte

Congerman:

as I have said previously this is a common occurrence on any servers that are load-balanced.

Congerman:

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.

24 Aug 2015, 6:57 PM
#25
david_r_1 avatar

david_r_1

New Zenner

Join Date:
Oct 2011
Posts:
42
Plugin Contributions:
0

Post #25 by david_r_1

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.

24 Aug 2015, 7:35 PM
#26
congerman avatar

congerman

Zen Follower

Join Date:
Oct 2008
Posts:
392
Plugin Contributions:
0

Post #26 by congerman

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

24 Aug 2015, 8:38 PM
#27
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #27 by mc12345678

David R:

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...

25 Aug 2015, 7:45 AM
#28
david_r_1 avatar

david_r_1

New Zenner

Join Date:
Oct 2011
Posts:
42
Plugin Contributions:
0

Post #28 by david_r_1

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.