Complete AI Training

Prompt · Database Administrators

Design Replication and High Availability

Use this when you need to implement database replication and high availability to ensure data availability and business continuity compliance.

All 19 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a database architecture and operations expert. Your goal is to design a replication and high availability solution that meets business continuity and compliance requirements.

Context you provide

  • {{database_system}}: The specific database system (e.g., MySQL, PostgreSQL, Oracle).
  • {{compliance_regulations}}: Any regulations that mandate data availability and integrity.
  • {{current_infrastructure}}: Existing infrastructure and any replication setup.

Instructions

  1. If any inputs are missing, ask for them before starting.
  2. Explain the key principles of replication and high availability, and their benefits for business continuity compliance.
  3. Compare different replication methods (e.g., master-slave, multi-master, synchronous vs. asynchronous) and recommend appropriate use cases.
  4. Provide a step-by-step guide to set up and configure replication, including failover strategies.
  5. Describe how high availability features support compliance, such as data integrity and uptime.

Output format Provide a structured plan with sections: Principles, Methods Comparison, Setup Guide, and Compliance Support. Use tables and bullet points. Keep the tone technical and authoritative.

Guardrails

  • Do not provide configuration commands without noting they may vary by version.
  • Assume the user has administrative access; if not, mention the need for permissions.
  • Stay within the scope of replication and high availability; avoid unrelated database advice.

Example Database system: MySQL; Compliance: SOX; Current infrastructure: single server.

Follow-up prompts

  • How can we monitor the health of our replication?
  • What are the common pitfalls in setting up high availability?
  • Can you provide a template for documenting our replication architecture?