How to configure services in Squadcast: Best practices to reduce MTTR
Tags: bestpractices, incidentmanagement
Published: 2021-04-21 12:04:09

_With a rise in digital platforms, IT infrastructure has grown exponentially complex to a level where multiple application interdependencies coexist with varied architecture & oncall team types. This blog looks at how you can model your infrastructure in Squadcast to reduce your time to respond & resolve incidents._

As an SRE of an organization with a rapidly growing infrastructure with several interdependencies, you may have struggled with configuring things on an incident management platform. If you have a smaller team with a monolithic architecture in place it is still relatively easier to connect the infrastructure to your incident management platform and create rules for escalations and alerting. But what happens if you have a large on-call team spread across time zones looking after the infrastructure that has hundreds of microservices running concurrently? How do you configure it all in your incident management platform while keeping in mind the load your on-call team will be under?

Since most platforms let you create services that accept alerts from monitoring tools, should you create 100 such services for every component of your infrastructure?

We will be tackling similar questions in this blog. But before we dive deeper, here are few things to be aware of.

**Q:** What are the key aspects this article would be addressing?

**A:** In this blog, we look at ways your team can configure incident management platform, in particular Squadcast, to ensure that you don’t waste precious time responding to incidents.

**Q:** What this article won’t cover?

**A:** Unfortunately, we cannot have a single solution that will work for every type of situation. This post seeks to provide some clarity to this problem. We have put together a set of best practices that should cover most production systems out there.

Some of the concerns you may have while modelling your services are

- Will I be alerted on time?
- How to avoid irrelevant alerts?
- Is the alert getting routed to the right person?
- Am I getting alerts for the most critical pieces of my infrastructure?

As a modern incident management platform, [Squadcast](https://www.squadcast.com/) aggregates and routes alerts from [monitoring tools](https://www.squadcast.com/integrations) and provides a centralised dashboard for tracking and prioritising alerts along with taking action and ultimately resolving the incident (the latter part will be covered in our blog titled “Intelligent Incident Response Plan”). Owing to its flexible configuration capabilities, there are many ways you can set-up alerting for services within Squadcast.

This blog takes into account the different kinds of infrastructure (monolithic/microservices or distributed) and types of on-call teams that are present.

Before we get started with the best practices, here are some Squadcast specific features that you need to know while configuring the platform.

- **Squads:** These are groups of on-call engineers and non-technical users that can be organized by business function or technology.

- **Services:** Services are a logical group of alert sources that can be tagged, deduplicated or routed to the right person/team. They are most commonly used to represent individual parts of your infrastructure. Please note that services can receive alerts from more than one monitoring tool.

- **Tags:** Tags in Squadcast can be auto-created to include context rich information with alerts. You can create your own rules for tagging alerts.

- **Routing:** Routing in Squadcast is used when you want alerts to be sent to someone who is not the default recipient. This is helpful when a specific part of your infrastructure is facing issues that require more specialised knowledge.

- **Escalation Policies:** These policies see to it that a critical alert is never missed. You can configure them to ensure that the right users and squads are alerted at the right time.

- **On-call Rotations:** On-call schedules are used to determine who will be notified when an incident is triggered. This helps you build a balanced on-call culture and ensures that no critical alerts are missed.

These features provide the backbone for the best practices in alerting for your organisation. While the solutions described in this blog are generic, with a little tweaking, chances are they will work for you. We have tried to be as inclusive as possible while creating these best practices. Before we get started on modelling your system in Squadcast, here are the assumptions we are making about the alerting systems you have in place.

**Monitoring:** We are assuming that you are already monitoring all the important aspects of your infrastructure. This includes alerting, metric collection, log aggregation and tracing/instrumentation practices. We are also assuming that you have a good mix of [proactive, reactive and investigative alerts](https://www.oreilly.com/content/reduce-toil-through-better-alerting/) in place. Further, you have also categorised the alerts based on whether they are related to the infrastructure or to the application side(business dependent).

**Relevant Alerting:** The alerts you have in place are linked to important parts of your infrastructure and are already optimised. This includes alerts that are actionable and not over sensitive (the right threshold). This also includes having the right [deduplication rules](https://www.squadcast.com/blog/reducing-on-call-alert-fatigue-with-deduplication) in place to mitigate alert noise. We are also assuming that you can add identifying information to your alert payloads.

Our recommendations assume that the alerting system you have in place presently is well suited to the type of business and tech stack that you are using.

The way you model your system will depend on several factors. First we will be looking at the kind of architecture you have in place.

###**Architecture**

For the purpose of this blog post, we will consider the following as different types of architecture that you may be using:

- **Monolithic Architecture:** All of your core functionality is concentrated to a single executable application with related infrastructure dependencies like app server, databases, load balancers etc. Your SRE team is responsible for maintenance of this part of the infrastructure.

- **Distributed:** A distributed architecture has multiple interdependent executable applications that intercommunicate with their related infrastructure dependencies. These may or may not be replicated. We will assume that the number of internal units is low enough, that they can be committed to memory.

- **Microservices:** A distributed architecture with a very large number of components. Due to the sheer number of these services, it is not feasible to create individual Squadcast services for each component.

- **Multiple Unrelated Applications:** Though less commonly found, these can be treated as a special case of the types of architecture mentioned above. This scenario may come into being when you need an incident management system with a proprietary application framework that doesn’t fit into any of the above. This kind of architecture may be seen in organisations that require compartmentalised applications for security or compliance reasons.

- **Kubernetes based architecture:** Some types of alerts from this kind of infrastructure are eliminated or automatically resolved by Kubernetes itself. Other than this, there is no significant difference from a common microservice architecture.

###**Response Team Organisation**

- **All-in-One Incident Response Team:** In this type of setup, all responders are organised into one team. Due to the nature of this setup it is possible to have lesser or negligible routing for alerts in your incident management platform.

- **Service based:** For larger organisations with more complex infrastructure, each application may have a dedicated team. Each team maintains their application and the infrastructure it depends on. Some examples are: Public API Team, Inventory Service Team.

- **Infrastructure Layer based:** This type of team organisation can be found in larger companies. In addition to application teams, there are teams that specialise in managing certain kinds of technology. Examples include: Inventory System Team, Database Team, Load balancer Team, Networking Team.

- **L1/L2/L3 Teams:** In this system, teams are organised into first responders and escalation teams. This type or team organisation can be considered a special case of the types mentioned above and for the sake of simplicity, we will not be discussing these separately.

###**Recommendations for Configuring Services**

In order to see the best recommendation for your on-call team type and architecture, please follow this [link](https://www.squadcast.com/blog/how-to-configure-services-in-squadcast-best-practices-to-reduce-mttr).

**Conclusion:** Depending on the nature of your infrastructure as well as the size and composition of your on-call staff, combinations of the above guidelines would be ideal for your organization. Initially, you may need to do several tests to determine the best way to model services in Squadcast depending on your specific needs. If you are a large organization with multiple interconnected services, our recommendations will assist you in implementing a framework that will optimize your alerting processes and help reduce your MTTR (Mean Time To Resolve).

Our next blog in this series titled “Intelligent Incident Response”, will help you understand what needs to be done to mitigate impact or fix the issue with help of Squadcast and all the while ensuring that you learn from every incident, which should be the biggest takeaway from your Incident Response process.‍

_[Squadcast](https://www.squadcast.com/) is an incident management tool that’s purpose-built for SRE. Your team can get rid of unwanted alerts, receive relevant notifications, work in collaboration using the virtual incident war rooms, and use automated tools like runbooks to eliminate toil._

[![](https://uploads-ssl.webflow.com/5c51758c58939b30a6fd3d73/5e16013f80ad26b00925d758_image--5--1.png)](https://app.squadcast.com/register/)