DP-203 Data Engineering on Microsoft Azure – Monitor and optimize data storage and data processing Part 10

  • By
  • July 4, 2023
0 Comment

26. Azure Databricks – Sending logs to Azure Monitor

In this chapter, I am going to give just a quick note on sending the application logs from Azure Databricks onto Azure Monitor. I’m also going to include this link as a resource on to this chapter. So this link actually gives you the way in which you can send the application logs for Azure data bricks onto a log antics workspace. So we have seen the log antics workspace before. So you have a workspace and then you can stream the logs from various resources onto the workspace itself if you actually go on to logs. So here I’ve already been sending logs from other resources.

So here you will see as your diagnostic SQL security audit events. So these are logs that are already being streamed onto this log antics workspace. Now, let’s say you want to ensure that even whatever applications or jobs that you run on Azure databreaks, those detailed logs are also sent on to a Log antics workspace. You can actually implement the steps which are present in this particular documentation link. Now, from the perspective of the exam, what is important? So if you want to implement this, you need to have a Log antics workspace in place. And the other step is to configure your database cluster to use the monitoring library.

So here if you actually open up this GitHub README, so here it gives you the list of steps on how you can integrate as your databricks with this monitoring library. Now, the reason I’m not going through this, because this is quite an extensive way on trying to integrate Azure databricks when it comes to monitoring, I’m hoping in the future that they make this much more simpler, wherein they’ll have direct monitoring or sending off logs from Azure databricks onto the Log antics workspace.

So I said there is quite a lot that you need to implement in order to make this possible. And in addition to logs, if you also want to send the application metrics from your Azure database application code onto Azure Monitor, you need to build something known as a Jar file. And then you create something known as the Drop visit causes and counters in your application code. So I said there’s quite a lot that you need to do in order to ensure that you can send both your logs and your metrics onto the Azure monitoring service. But from the perspective of the exam, I want to ensure that I inform you or give you information about this particular feature or this implementation.

27. Azure Event Hubs – High Availability

Now in this chapter, I want to go through the High Availability Option, which is available when it comes on to Azure Event Hubs. Now by default, Azure Event Hubs can withstand if the underlying individual machines in the data center goes down. And you can also enable availability zone support for Azure event. Hubs. This allows the Event Hubs to be available, available even in the event of a data center failure. So, Avery Zones is a group of data centers, and by ensuring that your Event Hubs are in multiple Avery Zones, it helps to keep the Event Hub up and running even if a data center failure occurs. But what happens if the entire region goes down?

So let’s say you have an Event Hub namespace in the North Europe location, and let’s say this location goes down in as your Event Hubs, you can actually create a pairing between a namespace that is located in another region. So your application can actually start sending messages on to the Event Hub namespace, which is in the different location. And if you are sending your events onto a storage account via the Capture feature, in order to make this entire setup highly available for your storage accounts, you can also consider using Georeplicated storage accounts.

So remember in the section wherein we looked at the replication techniques that is available for storage accounts, in addition to making your Azure Event Hubs highly available, you can also increase the availability of your storage accounts if there is a region level failure by implementing Georeplicated storage accounts. Now I’ll just go over onto Azure Event Hubs and I’ll show you where you can implement this geo feature that is available.

So now if I go on to my Event Hub namespace, it’s in the North Europe location here, if I go on to Geo Recovery here, I can click on the option to initiate pairing. Now here I can choose my resource group. Here I can choose the location that I want to pair with. So let’s say West Europe, I can choose that. And here we can now create a secondary Event Hub namespace. Then I’ll scroll down and we have to give something known as an alias. So now, instead of your application connecting separately onto the primary and then connecting second.

So now instead of your application first connecting on to App namespace, which is our primary, and then connecting on to secondary namespace, if there is a failure in App namespace, it can just connect on to the areas. And I explain this to you once we actually create this pairing in place. And I’ll explain this once we have this pairing in place. So I’ll give a name and hit on Create. Now this might take a couple of minutes. Let’s wait till this is complete. Now, once the pairing is complete, now here you can see you have your primary and your secondary namespace in place. So now whenever there is an issue with the region that is hosting your primary namespace.

If it goes down, then automatically it will switch over onto the secondary namespace. You can also do a manual failover at any point in time. Now, in your application, in order to ensure that there is no disruption onto sending events. Now, instead of using the shared access policy of each namespace separately, now for this particular alias which has been created, it also has its own share access policy. And what do I mean by this? So remember in one of our earlier programs when we saw a.

Net application for sending messages, let’s say onto Azure Event Hub, we had to take the connection string. Now, instead of going on to app namespace and taking this shared access policy or taking the shared access policy of the Event Hubs individually, what you can do is that you can now go on to that alias, go on to share access policy, and here you will see your shared access policies from here itself.

So now if you go on to one of the existing shared access policy, now you will see you have something known as the alias primary connection string. So now you can copy this onto your program. So what this does is if there is a failure in the primary Event Hub namespace, then you don’t need to change the connection string in your program because now it is connecting on to this alias. This alias will ensure that if there is a problem with the Event Hub in the primary namespace, your program can now connect on to the Azure Event Hub in the secondary namespace.

* The most recent comment are at the top

Interesting posts

IBM Certified Data Scientist: Building a Career in Data Science

In today’s digital age, data is the new oil, driving decision-making and innovation across industries. The role of a data scientist has become one of the most sought-after positions in the tech world. If you’re considering a career in data science, obtaining the IBM Certified Data Scientist certification can be a game-changer. This certification not… Read More »

How to Balance Work and Study While Preparing for IT Certification Exams

Balancing work and study while preparing for IT certification exams can feel like an uphill battle. Juggling a full-time job and intense study sessions requires careful planning, discipline, and creativity. The pressure of meeting job responsibilities while dedicating time and energy to study can be overwhelming. However, with the right strategies and mindset, you can… Read More »

10 Highest Paying IT Certifications

In the ever-evolving world of information technology, certifications are more than just a feather in your cap – they’re a ticket to higher salaries and advanced career opportunities. With the tech landscape constantly shifting, staying updated with the most lucrative and relevant certifications can set you apart in a competitive job market. Whether you’re aiming… Read More »

Strategies for ISACA Certified Information Systems Auditor (CISA) Exam

Are you ready to take your career in information systems auditing to the next level? The ISACA Certified Information Systems Auditor (CISA) exam is your ticket to becoming a recognized expert in the field. But let’s face it, preparing for this comprehensive and challenging exam can be daunting. Whether you’re a seasoned professional or just… Read More »

Preparing for Juniper Networks JNCIA-Junos Exam: Key Topics and Mock Exam Resources

So, you’ve decided to take the plunge and go for the Juniper Networks JNCIA-Junos certification, huh? Great choice! This certification serves as a robust foundation for anyone aiming to build a career in networking. However, preparing for the exam can be a daunting task. The good news is that this guide covers the key topics… Read More »

Mastering Microsoft Azure Fundamentals AZ-900: Essential Study Materials

Ever wondered how businesses run these days without giant server rooms? That’s the magic of cloud computing, and Microsoft Azure is a leading cloud platform. Thinking about a career in this exciting field? If so, mastering the Microsoft Certified: Azure Fundamentals certification through passing the AZ-900 exam is the perfect starting point for you. This… Read More »