Azure – Troubleshooting AKS Recommended KeepAlive Settings sudo bash -c “echo 120 > /proc/sys/net/ipv4/tcp_keepalive_time” sudo bash -c “echo 30 > /proc/sys/net/ipv4/tcp_keepalive_intvl” sudo bash -c “echo 8 > /proc/sys/net/ipv4/tcp_keepalive_probes”
Change Database Recover Model
Change Database Recover Model USE master DECLARE @isql VARCHAR(2000), @dbname VARCHAR(64), @logfile VARCHAR(128) DECLARE c1 CURSOR FOR SELECT d.name, mf.name AS logfile –, physical_name AS current_file_location, size FROM sys.master_files mf INNER JOIN sys.databases d ON mf.database_id = d.database_id WHERE recovery_model_desc <> ‘SIMPLE’ AND d.name NOT …
Azure Useful Queries
Log Analytics // Percentiles Calculation search * | where Category == ‘SQLSecurityAuditEvents’ | order by event_time_t , server_principal_name_s ,duration_milliseconds_d | where database_name_s == “UserDB” | where server_principal_name_s == “databaselogin” | summarize percentiles(duration_milliseconds_d, 25, 50, 75, 90,95,99) by substring(statement_s, 0, 40) , server_principal_name_s ,application_name_s | where …
Deadlocks in Azure SQL Database
Deadlocks in Azure SQL Database : Recently we were working with Azure Logic Apps to invoke Azure Functions. By Default, Logic App runs parallel threads and we didn’t explicitly control the concurrency and left the default values. So Logic App invoked several concurrent threads which …
Azure SQL Database Connectivity Architecture
Azure SQL Database Connectivity Architecture Connection policy Azure SQL Database supports the following three options for the connection policy setting of a SQL Database server: Redirect (recommended): Clients establish connections directly to the node hosting the database. To enable connectivity, the clients must allow outbound firewall …