0
0
SCADA systemsdevops~30 mins

Redundant server configuration in SCADA systems - Mini Project: Build & Apply

Choose your learning style9 modes available
Redundant Server Configuration
📖 Scenario: You are working in a SCADA system environment where continuous monitoring is critical. To ensure the system stays online even if one server fails, you need to set up a redundant server configuration.
🎯 Goal: Build a simple configuration setup that defines two servers and a failover mechanism to switch to the backup server if the primary server is down.
📋 What You'll Learn
Create a dictionary called servers with keys primary and backup and their IP addresses as values
Add a variable called failover_enabled set to True
Write a function called get_active_server that returns the primary server IP if failover_enabled is True, else returns the backup server IP
Print the active server IP using the get_active_server function
💡 Why This Matters
🌍 Real World
In SCADA systems, continuous monitoring is critical. Redundant servers ensure the system stays online even if one server fails.
💼 Career
Understanding redundant server configuration is essential for DevOps roles managing high-availability systems in industrial environments.
Progress0 / 4 steps
1
Create the server dictionary
Create a dictionary called servers with these exact entries: 'primary': '192.168.1.10' and 'backup': '192.168.1.11'.
SCADA systems
Need a hint?

Use curly braces {} to create a dictionary with keys and values.

2
Enable failover
Add a variable called failover_enabled and set it to True.
SCADA systems
Need a hint?

Just assign the value True to the variable failover_enabled.

3
Define the failover function
Write a function called get_active_server that returns servers['primary'] if failover_enabled is True, else returns servers['backup'].
SCADA systems
Need a hint?

Use an if statement inside the function to check failover_enabled.

4
Print the active server IP
Write a print statement that displays the result of calling get_active_server().
SCADA systems
Need a hint?

Call get_active_server() inside print() to show the active server IP.