473,771 Members | 2,406 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Redundancy ?

Hi Guys,

I'm missing something in the MySQL clustering design. In the basic
design outlined in the How-To, there are two NDBD nodes, a manager node
and a MySQL node (ndb). If I now write an application that connects to
the single MySQL node, and it fails ... well then the redundant NDBD
nodes on the back end don't seem to help much.

Am I missing something here? I want put a design together to has no
single point of failure.

Thanks
Warrick
Nov 1 '05 #1
3 2153
>I'm missing something in the MySQL clustering design. In the basic
design outlined in the How-To, there are two NDBD nodes, a manager node
and a MySQL node (ndb). If I now write an application that connects to
the single MySQL node, and it fails ... well then the redundant NDBD
nodes on the back end don't seem to help much.

Am I missing something here? I want put a design together to has no
single point of failure.


If you want to avoid a single point of failure, clients must be
given a list of servers to connect to, regardless of how redundant
the servers are, unless you've got multiple clients that can back
each other up (e.g. multiple web servers with identical content on
a level 4 switch, with provisions to shut off handing requests to
servers that are down). This applies to any client/server setup
(including DNS, web servers, and MySQL).

The MySQL cluster design has storage nodes and SQL nodes. A client
connects to a SQL node. Any SQL node can use any storage node.
You might get acceptable (but not as good as doing it right)
redundancy by putting a SQL node on each host with a client, and
each client tries to use only "localhost" as a server. This does
not account for failures where the client is up but the SQL node
on the same host is down (e.g. filesystem damage to programs,
network interface down, system running with limited memory too low
to run a SQL node, etc.).

The clients must also deal gracefully with the possibility that the
connection fails while it is being used: possibly by reconnecting
and starting over. Reconnecting and retrying from the current query
may be dangerous depending on the situation: you may not be on the
same database, last_insert_id( ) may not be set right, you may not
be in the middle of a transaction, various modes might not be set
right, etc.

Gordon L. Burditt
Nov 1 '05 #2
Gordon Burditt wrote:
I'm missing something in the MySQL clustering design. In the basic
design outlined in the How-To, there are two NDBD nodes, a manager node
and a MySQL node (ndb). If I now write an application that connects to
the single MySQL node, and it fails ... well then the redundant NDBD
nodes on the back end don't seem to help much.

Am I missing something here? I want put a design together to has no
single point of failure.

If you want to avoid a single point of failure, clients must be
given a list of servers to connect to, regardless of how redundant
the servers are, unless you've got multiple clients that can back
each other up (e.g. multiple web servers with identical content on
a level 4 switch, with provisions to shut off handing requests to
servers that are down). This applies to any client/server setup
(including DNS, web servers, and MySQL).

The MySQL cluster design has storage nodes and SQL nodes. A client
connects to a SQL node. Any SQL node can use any storage node.
You might get acceptable (but not as good as doing it right)
redundancy by putting a SQL node on each host with a client, and
each client tries to use only "localhost" as a server. This does
not account for failures where the client is up but the SQL node
on the same host is down (e.g. filesystem damage to programs,
network interface down, system running with limited memory too low
to run a SQL node, etc.).

The clients must also deal gracefully with the possibility that the
connection fails while it is being used: possibly by reconnecting
and starting over. Reconnecting and retrying from the current query
may be dangerous depending on the situation: you may not be on the
same database, last_insert_id( ) may not be set right, you may not
be in the middle of a transaction, various modes might not be set
right, etc.

Gordon L. Burditt


I would see this as a MySQL design weekness then, as in MSSQL server
clustering you can have a virtual IP address. If the primary box dies,
the secondary will pickup the IP of the failed machine and any client
using an ODBC connection etc, would simply try to re-connect, but this
time hitting the backup machine. I may be wrong, but that sounds a lot
cleaner than what you've just described.
Nov 1 '05 #3
>I would see this as a MySQL design weekness then, as in MSSQL server
clustering you can have a virtual IP address. If the primary box dies,
the secondary will pickup the IP of the failed machine and any client
using an ODBC connection etc, would simply try to re-connect, but this
time hitting the backup machine. I may be wrong, but that sounds a lot
cleaner than what you've just described.


What you described requires a lot of magic with routers that I don't
think a database will have or should have privileges to do (and I
don't believe MSSQL is capable of doing it). It will be very
difficult to arrange a hosting setup where you can do this with the
backup server in a different city (or country) from the primary
server, and you can transparently switch routing for that IP from
one to the other.

You certainly shouldn't have the primary and the backup server on
the same Ethernet wire - that's a single point of failure. Routing
to a particular IP address is also a single point of failure. Also,
BGP can take a while to get routing to converge.

Gordon L. Burditt
Nov 1 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2212
by: ChrisRath | last post by:
I have a table that I want to have a precalulcate length on a character field and group and sum up. Thought I could do this by creating a view with a group by clause that includes the sum function. Unfortunately, the compiler complains with: A clustered index cannot be created on the view 'MyView' because the index key includes columns which are not in the GROUP BY clause. Wish I could verbalize the problem a little better, but the...
6
2201
by: Jason Heyes | last post by:
I am starting to worry about the performance of formatted read/write operations on data-redundant objects in my program.What can I do to improve this performance should it become an issue? Thanks.
4
2879
by: Carlos | last post by:
Hello Forum, I would appreciate it if you could recommend software to build redundancy in my application (my application stores data in a PostgreSQL v7.3.x database running in Linux RedHat) The software would replicate or copy the database from a main server into a second server. And when the main server goes down, the redundant database could still be available in a view mode -- where most tables cannot be updated and only a couple of...
0
1562
by: Derrick | last post by:
Hello all; This is going to be a bit long...sorry... I am about to start out on a small scale client/server type system. The server will collect data from various sources (custom hardware over ethernet), and make that data available to the clients (either webservices or remoting, not sure yet). Since the hardware is networked, the clients could talk to it directly, but I don't want to put the hardware through that load since...
4
1843
by: Dave White | last post by:
Hello Everyone, I have the following 3 tables setup:(Thanks Marsh!) Students Table StudentID (1 to many) Last First Class (Class Name) Period ( 1 to 8)
7
3134
by: brucepayne | last post by:
what is the query for reduce redundancy in table plz help me
2
1437
by: PeterAlt | last post by:
Hello all! This is my first post here. I've been going crazy lately trying to master the art of working with and creating my own objects with Javascript. I see the HUGE power potential of object orientation within the scripts I could write, but I am having a real difficult time grasping what appears to be extremely simple concepts. As of now, I've pretty much got it, but not completely. Okay, here is an example of a segment of code I wrote (I...
1
4678
by: forrestgump | last post by:
I am looking to create a statutory redundancy calculator (UK) in either access or excel. I need to calculate large batches of employees statutory redundandancies. Has anyone created one before that they can send me so I can view the calulcations? I know this is a bit lazy I am trying to create one as we speak but I am sending out this message in hope. Regards,
3
3825
by: mfareed | last post by:
Can somebody help me with the CRC (Cyclic Redundancy Code) algorithm implementation given below: There is a three byte packet header. <--------1st byte-----><--------2nd byte-----><--------3rd byte-------------> --------------------------------------------------------------------------------------------- | 8bits | 8bits | 3 bits| 5 bits (CRC ) | ...
0
9619
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10261
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10103
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8934
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6713
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.