<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>High Availability Archives - ServerStadium</title>
	<atom:link href="https://serverstadium.com/knowledge-base/tag/high-availability/feed/" rel="self" type="application/rss+xml" />
	<link>https://serverstadium.com/knowledge-base/tag/high-availability/</link>
	<description>Public Cloud Solution by ServerStadium</description>
	<lastBuildDate>Fri, 05 Jan 2024 00:35:10 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>

<image>
	<url>https://serverstadium.com/wp-content/uploads/2023/04/cropped-favicon-1-32x32.png</url>
	<title>High Availability Archives - ServerStadium</title>
	<link>https://serverstadium.com/knowledge-base/tag/high-availability/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Configuring High-Availability Clusters with Proxmox VE</title>
		<link>https://serverstadium.com/knowledge-base/configuring-high-availability-clusters-with-proxmox-ve/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Fri, 05 Jan 2024 00:35:10 +0000</pubDate>
				<guid isPermaLink="false">https://serverstadium.com/?post_type=epkb_post_type_1&#038;p=11875</guid>

					<description><![CDATA[<p>Introduction Implementing a high-availability (HA) cluster with Proxmox VE on ServerStadium’s infrastructure (VM Pricing, Dedicated Servers) enables robust and resilient server management. It&#8217;s ideal for businesses seeking to maximize uptime and provide reliable service continuity. Prerequisites Two or more ServerStadium VMs or dedicated servers (VM Pricing, Dedicated Servers). Basic knowledge of virtualization, Linux server administration,&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/configuring-high-availability-clusters-with-proxmox-ve/">Configuring High-Availability Clusters with Proxmox VE</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h3>Introduction</h3>
<p>Implementing a high-availability (HA) cluster with Proxmox VE on ServerStadium’s infrastructure (<a href="https://serverstadium.com/pricing/" target="_new" rel="noopener">VM Pricing</a>, <a href="https://serverstadium.com/dedicated-server/" target="_new" rel="noopener">Dedicated Servers</a>) enables robust and resilient server management. It&#8217;s ideal for businesses seeking to maximize uptime and provide reliable service continuity.</p>
<h3>Prerequisites</h3>
<ul>
<li>Two or more ServerStadium VMs or dedicated servers (<a href="https://serverstadium.com/pricing/" target="_new" rel="noopener">VM Pricing</a>, <a href="https://serverstadium.com/dedicated-server/" target="_new" rel="noopener">Dedicated Servers</a>).</li>
<li>Basic knowledge of virtualization, Linux server administration, and networking.</li>
<li>Proxmox VE installed on each server.</li>
</ul>
<h3>Step 1: Set Up ServerStadium Servers for Proxmox</h3>
<ol>
<li><strong>Choose Servers</strong>: Select at least two ServerStadium servers to form your HA cluster.</li>
<li><strong>Prepare Servers</strong>:
<div class="shortcode-code">
<p> sudo apt update<br />
sudo apt upgrade </p></div></li>
</ol>
<h3>Step 2: Install Proxmox VE</h3>
<ol>
<li><strong>Install Proxmox</strong>:
<p>Install Proxmox VE on each server. Follow the official installation guide provided by Proxmox.</li>
</ol>
<h3>Step 3: Configure the Proxmox VE Cluster</h3>
<ol>
<li><strong>Create a New Cluster</strong>:
<p>On the first server, create a new cluster:</p>
<div class="shortcode-code">
<p> pvecm create cluster-name </p></div></li>
<li><strong>Add Other Nodes to the Cluster</strong>:
<p>On each additional server, join the cluster:</p>
<div class="shortcode-code">
<p> pvecm add first-node-ip </p></div>
<p>Replace <code>first-node-ip</code> with the IP address of the first server.</li>
</ol>
<h3>Step 4: Configure High Availability</h3>
<ol>
<li><strong>Set Up HA Resources</strong>:
<p>In the Proxmox VE web interface, convert virtual machines (VMs) or containers to HA resources.</li>
<li><strong>Configure HA Groups</strong>:
<p>Define HA groups to control which nodes can run specific VMs or containers.</li>
</ol>
<h3>Step 5: Test Cluster and HA Functionality</h3>
<ol>
<li><strong>Verify Cluster Status</strong>:
<p>Ensure that all nodes are correctly joined and communicating within the cluster.</li>
<li><strong>Test Failover</strong>:
<p>Simulate node failures to test if HA resources automatically migrate to other nodes as expected.</li>
</ol>
<h3>Conclusion</h3>
<p>Your high-availability cluster with Proxmox VE is now set up on ServerStadium servers, offering a resilient and scalable solution for your virtualization needs. This setup ensures that your services remain available even in the event of server failure. For more detailed guidance on advanced configurations and optimization, visit our <a href="https://serverstadium.com/knowledge-base/" target="_new" rel="noopener">knowledge base</a> or contact our <a href="https://serverstadium.com/" target="_new" rel="noopener">support team</a>.</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/configuring-high-availability-clusters-with-proxmox-ve/">Configuring High-Availability Clusters with Proxmox VE</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Advanced Database Clustering with Galera Cluster for MySQL</title>
		<link>https://serverstadium.com/knowledge-base/advanced-database-clustering-with-galera-cluster-for-mysql/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Thu, 04 Jan 2024 23:49:33 +0000</pubDate>
				<guid isPermaLink="false">https://serverstadium.com/?post_type=epkb_post_type_1&#038;p=11863</guid>

					<description><![CDATA[<p>Introduction Implementing Galera Cluster for MySQL on ServerStadium’s infrastructure (VM Pricing, Dedicated Servers) enables businesses to manage large-scale, high-availability databases efficiently. Galera Cluster&#8217;s synchronous replication model ensures that data is consistent across all nodes, making it ideal for critical applications requiring high uptime and data integrity. Prerequisites ServerStadium VMs or dedicated servers (VM Pricing, Dedicated&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/advanced-database-clustering-with-galera-cluster-for-mysql/">Advanced Database Clustering with Galera Cluster for MySQL</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h3>Introduction</h3>
<p>Implementing Galera Cluster for MySQL on ServerStadium’s infrastructure (<a href="https://serverstadium.com/pricing/" target="_new" rel="noopener">VM Pricing</a>, <a href="https://serverstadium.com/dedicated-server/" target="_new" rel="noopener">Dedicated Servers</a>) enables businesses to manage large-scale, high-availability databases efficiently. Galera Cluster&#8217;s synchronous replication model ensures that data is consistent across all nodes, making it ideal for critical applications requiring high uptime and data integrity.</p>
<h3>Prerequisites</h3>
<ul>
<li>ServerStadium VMs or dedicated servers (<a href="https://serverstadium.com/pricing/" target="_new" rel="noopener">VM Pricing</a>, <a href="https://serverstadium.com/dedicated-server/" target="_new" rel="noopener">Dedicated Servers</a>)., ideally three for a basic cluster setup.</li>
<li>Basic knowledge of MySQL database administration.</li>
<li>SSH access to the servers.</li>
</ul>
<h3>Step 1: Set Up ServerStadium Environment</h3>
<ol>
<li><strong>Choose Servers</strong>: Select three or more ServerStadium servers to form a cluster.</li>
<li><strong>Prepare Servers</strong>:
<div class="shortcode-code">
<p> sudo apt update<br />
sudo apt upgrade </p></div></li>
</ol>
<h3>Step 2: Install MySQL and Galera on Each Node</h3>
<ol>
<li><strong>Install MySQL</strong>:
<p>Install MySQL on each server:</p>
<div class="shortcode-code">
<p> sudo apt install mysql-server </p></div></li>
<li><strong>Install Galera</strong>:
<p>Install the Galera package:</p>
<div class="shortcode-code">
<p> sudo apt install galera-4 </p></div></li>
</ol>
<h3>Step 3: Configure MySQL for Galera Cluster</h3>
<ol>
<li><strong>Configure MySQL on Each Node</strong>:
<p>Edit the MySQL configuration file (<code>/etc/mysql/my.cnf</code> or similar) to enable Galera:</p>
<div class="shortcode-code">
<p> sudo nano /etc/mysql/my.cnf </p></div>
<p>Add the following under the <code>[mysqld]</code> section:<br />
<div class="shortcode-code">
<p>&#091;mysqld&#093;<br />
wsrep_provider=/usr/lib/galera/libgalera_smm.so<br />
wsrep_cluster_name=&#039;galera_cluster&#039;<br />
wsrep_cluster_address=&#039;gcomm://node1_ip,node2_ip,node3_ip&#039;<br />
wsrep_node_address=&#039;this_node_ip&#039;<br />
wsrep_sst_method=rsync</p></div><br />
Replace <code>node1_ip</code>, <code>node2_ip</code>, <code>node3_ip</code>, and <code>this_node_ip</code> with the actual IP addresses of your nodes.</li>
</ol>
<h3>Step 4: Initialize the Galera Cluster</h3>
<ol>
<li><strong>Start the First Node</strong>:
<p>On the first node, start the MySQL server with Galera initialization:</p>
<div class="shortcode-code">
<p> sudo galera_new_cluster </p></div></li>
<li><strong>Start MySQL on Other Nodes</strong>:
<p>On the remaining nodes, start the MySQL service normally:</p>
<div class="shortcode-code">
<p> sudo systemctl start mysql </p></div></li>
</ol>
<h3>Step 5: Verify Cluster Operation</h3>
<ol>
<li><strong>Check Cluster Size</strong>:
<p>Verify that the cluster is operational by checking the cluster size on any node:</p>
<div class="shortcode-code">
<p> mysql -u root -p -e &quot;SHOW STATUS LIKE &#039;wsrep_cluster_size&#039;&quot; </p></div></li>
</ol>
<h3>Conclusion</h3>
<p>Galera Cluster enhances MySQL&#8217;s capabilities on ServerStadium servers, providing a robust platform for high-availability database solutions. It&#8217;s an ideal setup for applications demanding high data integrity and minimal downtime. For advanced cluster configurations and management, visit our <a href="https://serverstadium.com/knowledge-base/" target="_new" rel="noopener">knowledge base</a> or contact our <a href="https://serverstadium.com/" target="_new" rel="noopener">support team</a>.</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/advanced-database-clustering-with-galera-cluster-for-mysql/">Advanced Database Clustering with Galera Cluster for MySQL</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Setting Up MySQL Master-Slave Replication on ServerStadium VMs</title>
		<link>https://serverstadium.com/knowledge-base/setting-up-mysql-master-slave-replication-on-serverstadium-vms/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Thu, 04 Jan 2024 01:53:44 +0000</pubDate>
				<guid isPermaLink="false">https://serverstadium.com/?post_type=epkb_post_type_1&#038;p=11756</guid>

					<description><![CDATA[<p>MySQL Master-Slave replication involves one database server (the Master) sending updates to one or more database servers (the Slaves). This guide will walk you through setting up this configuration using ServerStadium VM instances. Prerequisites A ServerStadium account and at least two VM instances. Set these up through ServerStadium Cloud Services. Basic knowledge of MySQL and&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/setting-up-mysql-master-slave-replication-on-serverstadium-vms/">Setting Up MySQL Master-Slave Replication on ServerStadium VMs</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>MySQL Master-Slave replication involves one database server (the Master) sending updates to one or more database servers (the Slaves). This guide will walk you through setting up this configuration using ServerStadium VM instances.</p>
<h3>Prerequisites</h3>
<ul>
<li>A ServerStadium account and at least two VM instances. Set these up through <a href="https://serverstadium.com/" target="_new" rel="noopener">ServerStadium Cloud Services</a>.</li>
<li>Basic knowledge of MySQL and Linux server management.</li>
</ul>
<h3>Step 1: Setting Up the MySQL Master Server</h3>
<ol>
<li><strong>Install MySQL</strong>: On your first VM (the Master), install MySQL:<div class="shortcode-code">
<p>sudo apt update<br />
sudo apt install mysql-server</p></div></li>
<li><strong>Configure MySQL for Replication</strong>: Open the MySQL configuration file:<br />
<div class="shortcode-code">
<p>sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf</p></div><br />
Add or modify the following lines:<br />
<div class="shortcode-code">
<p>server-id = 1<br />
log_bin = /var/log/mysql/mysql-bin.log<br />
binlog_do_db = my_database</p></div><br />
Replace <code>my_database</code> with the name of your database. Save and exit the file.</li>
<li><strong>Restart MySQL</strong>:<br />
<div class="shortcode-code">
<p>sudo systemctl restart mysql</p></div></li>
<li><strong>Create a Replication User</strong>:
<p>Access MySQL:<br />
<div class="shortcode-code">
<p>mysql -u root -p</p></div><br />
Then run:<br />
<div class="shortcode-code">
<p>CREATE USER &#039;replicator&#039;@&#039;%&#039; IDENTIFIED WITH mysql_native_password BY &#039;password&#039;;<br />
GRANT REPLICATION SLAVE ON *.* TO &#039;replicator&#039;@&#039;%&#039;;<br />
FLUSH PRIVILEGES;</p></div><br />
Replace <code>'password'</code> with a strong password.</li>
<li><strong>Lock the Database for Export</strong>:
<p>In the MySQL prompt, run:<br />
<div class="shortcode-code">
<p>FLUSH TABLES WITH READ LOCK;<br />
SHOW MASTER STATUS;</p></div><br />
Note the file name and position. You will need these for setting up the Slave.</li>
</ol>
<h3>Step 2: Setting Up the MySQL Slave Server</h3>
<ol>
<li><strong>Install MySQL on the Slave Server</strong>:
<p>Repeat the same installation process on your second VM (the Slave).</li>
<li><strong>Configure the Slave Server</strong>:
<p>Open the MySQL configuration:<br />
<div class="shortcode-code">
<p>sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf</p></div><br />
Add or modify:<br />
<div class="shortcode-code">
<p>server-id = 2<br />
relay_log = /var/log/mysql/mysql-relay-bin.log<br />
log_bin = /var/log/mysql/mysql-bin.log<br />
binlog_do_db = my_database</p></div><br />
Restart MySQL:<br />
<div class="shortcode-code">
<p>sudo systemctl restart mysql</p></div></li>
</ol>
<h3>Step 3: Synchronize the Databases</h3>
<ol>
<li><strong>Export the Database from the Master</strong>:
<p>On the Master server, export your database:<br />
<div class="shortcode-code">
<p>mysqldump -u root -p &#8211;opt my_database &gt; my_database.sql</p></div></li>
<li><strong>Transfer the Database Dump to the Slave Server</strong>:
<p>Use <code>scp</code> or a similar tool to transfer <code>my_database.sql</code> to the Slave server.</li>
<li><strong>Import the Database on the Slave Server</strong>:
<p>On the Slave server, import the database:<br />
<div class="shortcode-code">
<p>mysql -u root -p my_database &lt; my_database.sql</p></div></li>
</ol>
<h3>Step 4: Establish Replication</h3>
<ol>
<li><strong>Configure the Slave Server</strong>:
<p>On the Slave server, open the MySQL prompt:<br />
<div class="shortcode-code">
<p>mysql -u root -p</p></div><br />
Run:<br />
<div class="shortcode-code">
<p>STOP SLAVE;<br />
CHANGE MASTER TO MASTER_HOST=&#039;master_ip&#039;, MASTER_USER=&#039;replicator&#039;, MASTER_PASSWORD=&#039;password&#039;, MASTER_LOG_FILE=&#039;recorded_log_file_name&#039;, MASTER_LOG_POS=recorded_log_position;<br />
START SLAVE;</p></div><br />
Replace <code>master_ip</code>, <code>recorded_log_file_name</code>, <code>recorded_log_position</code>, and <code>password</code> with the appropriate values.</li>
<li><strong>Verify Replication Status</strong>:
<p>Still in the MySQL prompt on the Slave, check the replication status:<br />
<div class="shortcode-code">
<p>&lt;span class=&quot;hljs-keyword&quot;&gt;SHOW&lt;/span&gt; SLAVE STATUS\G</p></div><br />
Look for <code>Slave_IO_Running</code> and <code>Slave_SQL_Running</code> both being set to <code>Yes</code>.</li>
</ol>
<h3>Conclusion</h3>
<p>You&#8217;ve successfully set up MySQL Master-Slave replication across ServerStadium VMs. This configuration ensures that your databases are synchronized, providing a foundation for high availability and data redundancy.</p>
<p>For more resources or assistance, visit our <a href="https://serverstadium.com/knowledge-base/" target="_new" rel="noopener">knowledge base</a> or contact our support team.</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/setting-up-mysql-master-slave-replication-on-serverstadium-vms/">Setting Up MySQL Master-Slave Replication on ServerStadium VMs</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
