An open API service indexing awesome lists of open source software.

https://github.com/kartikk-26/scalable-multi-server-architecture-deployment

This project deploys a multi-server setup with DNS, NFS, WordPress, and MariaDB replication, ensuring scalability, redundancy, and high availability in a cloud environment.
https://github.com/kartikk-26/scalable-multi-server-architecture-deployment

aws dns-server ec2 mariadb-database nfs-client nfs-server slave-master virtual-hosting webserver wordpress-deployment

Last synced: 17 days ago
JSON representation

This project deploys a multi-server setup with DNS, NFS, WordPress, and MariaDB replication, ensuring scalability, redundancy, and high availability in a cloud environment.

Awesome Lists containing this project

README

          

# Multi-Server Architecture with DNS, WordPress, Database Replication & NFS

## πŸ“Œ Project Overview
This project demonstrates the implementation of a **Multi-Server Infrastructure** by integrating **DNS, NFS, Web Server (WordPress), and MariaDB (Master-Slave replication)** to create a **scalable, redundant, and high-availability** system.

## 🎯 Objective
To design and deploy a **multi-server architecture** ensuring:
- **Centralized storage** using NFS.
- **Database replication** for redundancy and high availability.
- **Seamless web hosting** with WordPress.

## πŸ—οΈ Project Scope
The architecture consists of multiple servers, each assigned specific roles:
- **Instance 1 (DNS Server)** - Resolves domain names to IP addresses.
- **Instance 2 (NFS Client + Web Server + Virtual Hosting)** - Hosts WordPress and connects to the database.
- **Instance 3 (Master Database Server + NFS Server)** - Stores and replicates data.
- **Instance 4 (Slave Database Server)** - Ensures database redundancy.

## βš™οΈ Functional Components
### βœ… **DNS Server**
- Configured to resolve `kartik.sbs` to `Public IP of Instance 2`.
- Ensures proper hostname resolution for all servers.

### βœ… **NFS Server**
- Provides shared directories:
- `/nfsserver` β†’ Mounted at `/var/www/html/nfsclient` (Web Server) for WordPress files.
- `/db-data-server` β†’ Mounted at `/var/lib/mysql/db-data-client` (Master DB Server) for MariaDB storage.

### βœ… **Web Server** (Apache/Nginx + PHP + WordPress)
- Installed and configured **Apache/Nginx** with PHP support.
- Mounted **NFS shared directory** (`/nfsserver`) to store WordPress files.
- Installed and set up **WordPress** with a database connection.

### βœ… **Database Server** (MariaDB Master-Slave Replication)
- Installed **MariaDB** on both Master and Slave servers.
- Configured **Master-Slave replication** for data consistency.
- Mounted **NFS storage** (`/db-data-server`) for centralized database storage.

## πŸš€ Key Implementations
βœ” **Multi-Instance Deployment** - DNS, WordPress, MariaDB, and NFS distributed across multiple servers.

βœ” **AWS Public IP Usage** - Configured AWS EC2 instances with public IPs for external accessibility.

βœ” **Security Optimization** - Defined firewall rules and access control for secure communication.

βœ” **Database Replication** - Configured MariaDB **Master-Slave setup** for failover protection.

βœ” **NFS Integration** - Ensured centralized storage management across the infrastructure.

βœ” **Virtual Hosting & Testing** - Hosted `project.kartik.sbs` and verified accessibility.

## 🎯 Expected Outcomes
βœ… **Scalable & redundant** architecture for seamless web hosting.

βœ… **Centralized storage management** for efficient resource utilization.

βœ… **Reliable database replication** ensuring high
availability.

βœ… **Hands-on experience** in cloud infrastructure and multi-server deployment.

## πŸ”— Technologies Used
- **Cloud Provider**: AWS (EC2 Instances, Security Groups)
- **Operating System**: Linux (Ubuntu/CentOS)
- **Web Server**: Apache/Nginx
- **Database**: MariaDB (Master-Slave Replication)
- **DNS**: BIND
- **Storage**: NFS
- **Security**: Firewall, SSH, Access Control

## πŸŽ“ Learning & Takeaways
This project provided deep insights into **Cloud Computing, DevOps, Networking**, and **Multi-Server Configuration**. The hands-on experience in setting up a **fault-tolerant system** was invaluable! πŸš€

---

### Deployed Website πŸ“Έ:
-> Website With Virtual Hosting on (project.kartik.sbs)
![Website](./Assets/Live.png)

## πŸ“Œ **Connect with Me**
- Stay updated on [LinkedIn](https://www.linkedin.com/in/-kartikjain/) to see more projects and continuous improvements as I advance on this exciting journey.
- Follow along to track my daily progress and solutions as I tackle challenging **DevOps Projects**, master new tools, and refine my skills.
- Let’s collaborate and build impactful **DevOps solutions** together!