Solvice Maps runs on Google Cloud Platform (GCP) using a modern cloud-native architecture designed for high availability, scalability, and operational excellence. The infrastructure supports both real-time routing services and batch processing workloads with automatic scaling and comprehensive monitoring.
resource "google_compute_instance_template" "preemptible_template" { name = "osrm-preemptible-template" scheduling { preemptible = true automatic_restart = false on_host_maintenance = "TERMINATE" } # Use preemptible instances for batch processing machine_type = "n1-highmem-2"}
Auto-Scaling Configuration:
Copy
resource "google_compute_autoscaler" "osrm_autoscaler" { name = "osrm-autoscaler" target = google_compute_instance_group_manager.default.id autoscaling_policy { max_replicas = 10 min_replicas = 1 # Scale to zero during off-hours cooldown_period = 300 cpu_utilization { target = 0.7 } scaling_schedules { name = "scale-down-nights" description = "Scale down during off-hours" schedule = "0 22 * * *" # 10 PM time_zone = "Europe/Brussels" min_required_replicas = 0 duration_sec = 28800 # 8 hours } }}
This infrastructure provides a robust, scalable, and cost-effective foundation for the Solvice Maps platform, with comprehensive monitoring, security, and disaster recovery capabilities.
Assistant
Responses are generated using AI and may contain mistakes.