Managing MySQL Server Logs: Rotate, Compress, Retain & Delete

Scalegrid

MySQL Server generates several logs that can help you monitor the activities of the server. Setting Up MySQL Server Logging. Managing MySQL Server Logs: Rotate, Compress, Retain & Delete Click To Tweet. Check out these other posts to learn more about optimizing your MySQL deployments: Calculating InnoDB Buffer Pool Size for your MySQL Server. MySQL Tutorial – Configuring and Managing SSL On Your MySQL Server.

tempdb Enhancements in SQL Server 2019

SQL Performance

I have been making the same recommendations about tempdb since I started working with SQL Server over 15 years ago, when I was working with customers running version 2000. From the customer side, this has been the limit of what can be done*, until SQL Server 2019.

How It Works: SQL Server Lock Partitioning

SQL Server According to Bob

The partitioned memory and latch objects protect in-memory structures for short durations and can be sized according to available memory for SQL Server. Bob Dorr – Principal Software Engineer SQL Server

SQL Server Execution Plans Interview Questions

SQL Shack

In this article, we will discuss a few very common questions that you may be asked during a SQL Server administrator or developer technical job interview. Q1: What is a SQL Server Execution Plan?

SQL Server On Linux: Forced Unit Access (Fua) Internals

SQL Server According to Bob

SQL Server relies on Forced-Unit-Access (Fua) I/O subsystem capabilities to provide data durability, detailed in the following documents: SQL Server 2000 I/O Basic and SQL Server I/O Basics, Chapter 2. Microsoft SQL Server Database Engine Input/Output Requirements.

The Client/Server Rendering Spectrum

CSS - Tricks

There is Server-Side Rendering (SSR, like this WordPress site is doing) and Client-Side Rendering (CSR, like a typical React app). The Client/Server Rendering Spectrum by Chris Coyier ( @chriscoyier ). Direct Link to Article — Permalink The post The Client/Server Rendering Spectrum appeared first on CSS-Tricks. Link client side rendering performance server side renderingI've definitely been guilty of thinking about rendering on the web as a two-horse race.

Memory-Optimized TempDB Metadata in SQL Server 2019

SQL Shack

By removing disk-based storage and the challenge of copying data in and out of memory, query speeds in SQL Server can be improved by orders of magnitude. Migration Performance SQL Server 2019

Common SQL Server Mishaps

SQL Performance

I've been teaching and writing about common SQL Server mistakes for many years. This article will expand on my previous article and point out how these apply to SQL Server , Azure SQL Database , and Azure SQL Managed Instance. SQL Server Agent alerts. SQL Server Agent Alerts.

Batch Mode Bitmaps in SQL Server

SQL Performance

In traditional row-mode execution plans, SQL Server may introduce a Bitmap operator as part of performing early semi join reduction before a parallel hash or merge join. There have been major improvements since the first appearance of the batch mode execution engine in SQL Server 2012.

SQL Mysteries: SQL Server Login Timeouts – A Debugging Story

SQL Server According to Bob

Failures occur from remote clients or sqlcmd executed directory on the server (/opt/mssql-tools/bin). SQL Server 2017 CU10 does not show behavior. · SQL Server 2017 CU12 exhibits the behavior. Server is a Superdome with lots of CPUs and RAM.

New Dedicated Application Server Revs PHP to Peak Performance

DZone

php” file that sits quietly until it is invoked by a top-level web server like Nginx+PHP-FPM or Apache mod_php. How does this Peak Perform? Running a PHP application offers a wholly unique experience compared to running applications in other programming languages like Java or Golang.

SQL Server Log Writer Workers

SQL Server According to Bob

SQL Server 2017 leverages up to 4 log writer workers, on hidden schedulers, to assist in transaction log processing activities. You may find the number of log write workers has been increased to 8 when running newer releases of SQL Server to accommodate larger systems. During SQL Server startup the number of log writer workers is determined. SQL Server 2017 General How It Works It Just Runs Faster NUMA Performance Scheduler

How It Works: SQL Server Lock Iteration / Enumeration

SQL Server According to Bob

tran_locks, how does SQL Server scan the locks and avoid impacting the overall concurrency? I recently posted on aspects of the SQL Server Lock Manager and found the iteration of the locks interesting as I was stepping in the code. Bob Dorr – Principal Software Engineer SQL Server

Managing High Availability in PostgreSQL – Part III: Patroni

Scalegrid

Standby Server Tests. Reboot the server. patronictl list did not display this server. Master/Primary Server Tests. Reboot the server. Failover happened and one of the standby servers was elected as the new master after obtaining the lock. One of the standby servers acquired the DCS lock and became the master by promoting itself. Network-isolate the master server from other servers. PostgreSQL was demoted on the master server.

PostgreSQL Connection Pooling: Part 1 – Pros & Cons

Scalegrid

Using a connection pool in each module is hardly efficient: Even with a relatively small number of modules, and a small pool size in each, you end up with a lot of server processes. A long time ago, in a galaxy far far away, ‘threads’ were a programming novelty rarely used and seldom trusted.

SQL Server Linux: fsync and Buffered I/O

SQL Server According to Bob

I was asked to validate the SQL Server behavior in light of the error condition involving fsync/fdatasync outlined in this article. SQL Server does NOT do this, in fact I made sure SQL Server on Linux does not allow this to occur. SQL Server 2017 How It Works SQL Server on Linu

Performance Monitoring via SQL Server Query Store

SQL Shack

SQL Server Query Store is a performance monitoring tool that helps us evaluate the performance of a SQL query in terms of several different performance metrics such as CPU and Memory Consumption, execution time and the I/O cycles consumed by the query.

SQL Server Linux: Directory fsync Activities

SQL Server According to Bob

The SQL Server Host Extension provides file level integrity. Bob Dorr – Principal Software Engineer SQL Server. SQL Server 2017 How It Works SQL Server on LinuxWhen Creating, Renaming or Deleting (remove/unlinking) a file, Linux requires the direct parent directory to be synchronized. As documented in the manpage for fsync core changes to the directory require the directory itself to be synchronized.

SQL Server Instant File Initialization: SetFileValidData (Windows) vs fallocate (Linux)

SQL Server According to Bob

SQL Server Books Online documents Instant File Initialization and the associated security considerations. SQL Server performs the following API calls when creating or extending (growing) data and log files. Bob Dorr – Principal Software Engineer SQL Server.

Why Load Balancing Is Important for Web Servers?

DZone

In the web hosting service industry, it is commonly used for balancing the HTTP traffic across multiple servers which act together as a web front-end. A Load Balancer allows the users to distribute the traffic to a single IP across several servers by using a set of different protocols. The processing load can be shared across different nodes, rather limiting it to a single server. The load balancer decides the servers, which can handle the traffic.

KILL SPID command in SQL Server

SQL Shack

Introduction Once we connect to a SQL Server instance, it assigns a unique identification number to each connection. It is the Server Process ID and commonly known as SPID. SPID 1 to 50 is reserved for SQL Server […].

SQL Server Worker Thread Default Calculation

SQL Server According to Bob

SQL Server 2017 introduced a small change to SQL Server’s default worker thread calculation, accounting for smaller environments. When running on smaller environments SQL Server reduces the worker target. For an X64 installation, using the sp_configure ‘max worker threads’ value of 0 SQL Server uses the following calculation. On small environments SQL Server always uses 256 as the target. SQL Server 2017

Azure SQL Server auto-failover groups

SQL Shack

In this article, we will review how to set up auto-failover groups in Azure SQL Server and how failover group is different from active geo-replication in Azure.

Azure 75

AMD EPYC 7002 Series Processors and SQL Server

SQL Performance

On August 7, 2019, AMD finally unveiled their new 7nm EPYC 7002 Series of server processors, formerly code-named "Rome" at the AMD EPYC Horizon Event in San Francisco. Despite that, you will need a new model server to be able to use PCIe 4.0 Single-Socket Database Servers.

SQL Server Always On Listeners

SQL Shack

This article on SQL Server Always On Listeners includes an overview and various connection configurations for specifying MultiSubnetFailover including SSMS, ODBC, ADO.NET, as well as MultiSubnetFailover limitations and how to connect to all IP addresses via RegisterAllProvidersIP.

SQL Server Index Fill factor with Performance Benchmark

SQL Shack

In this article, we will study in detail about the how SQL Server Index Fill factor works. Index Fill factor SQL Server Index Fill Factor is a percentage value to be filled data page with data in SQL Server.

Jira Cloud, Jira Server, and Jira Data Center Integrations

Tasktop

Whether it’s a result of different teams or lines of business within the same company on separate instances, or even a merger or acquisition, you see different flavors of the multi-Jira architecture: Split across Jira server and Jira Cloud. Split across various Jira server instances.

How It Works: SQL Server LOGIN_STATS (sys.dm_exec_sessions)

SQL Server According to Bob

To track the login statistical information, enable the sp_configure value ‘common criteria compliance enabled ‘ setting and restart SQL Server. The information flow: Client sends login request to SQL Server. SQL Server creates new session object.

Overview of the Shrink TempDB database in SQL Server

SQL Shack

This article explores the usage of TempDB and different ways to shrink the TempDB database in SQL Server Each instance of Microsoft SQL Server has a system database TempDB. It is a backbone for the SQL Server instance.

Get details of SQL Server Database Growth and Shrink Events

SQL Shack

It is essential for the DBA to need to ensure the SQL Server database performance. Overview of Default trace in SQL Server Starting from SQL Server 2005, SQL Server captures a few critical events in the default traces. […].

Troubleshooting Variable Memory Grants in SQL Server

SQL Performance

One of the more perplexing problems to troubleshoot in SQL Server can be those related to memory grants. SQL Server’s optimizer estimates how much memory is needed, and the query must obtain the memory grant in order to start executing.

Optimizing SQL Server index strategies

SQL Shack

Index strategies overview This article is about techniques for optimizing the SQL Server indexes strategy. It is an appendix of the SQL index overview and strategy article in which I covered different areas like what indexes actually do, how to create them, and I briefly mentioned some index design guidelines. Furthermore, I also presented an […]. Indexes Maintenance Performance

SQL Server monitoring tool for CPU performance

SQL Shack

CPU pressure slowing down the server This article is the sequel in a series about SQL Server monitoring tools and common performance issues.

An Overview of Instant File Initialization in SQL Server

SQL Shack

This article gives an overview of Instant File Initialization and its benefits for SQL Server database creation, restoration and file growth. Introduction As a database administrator, you must ensure database availability, performance, recovery from disaster.

SQL Server Hardware Optimization

SQL Server Performance

You monitor the server over time so that you can determine Server average […]. An important concern in optimizing the hardware platform is hardware components that restrict performance, known as bottlenecks. Quite often, the problem isn’t correcting performance bottlenecks as much as it is identifying them in the first place. Start with obtaining a performance baseline. General DBA Performance Tuning hardware

Is Intel Doomed in the Server CPU Space?

SQL Performance

A close monitoring of the hardware enthusiast community, including many of the most respected hardware analysts and reviewers paints an even more dire picture about Intel in the server processor space. Intel has been stuck at 14nm in the server space since the Broadwell release in Q4 of 2016.

Isolation levels behavior in SQL Server Always On Availability Groups

SQL Shack

In my previous article, Data synchronization in SQL Server Always On Availability Groups, we explored the internal data synchronization for both Asynchronous and Synchronous data commit mode.

SQL Server monitoring tools for memory performance

SQL Shack

Memory pressure slowing down queries This article is the sequel in a series about SQL Server monitoring tools and common performance issues.

SQL Server Transaction Log and High Availability Solutions

SQL Shack

In the previous article of this series on the SQL Server transaction log, we discuss the SQL Server database recovery models, Full, Simple and Bulk-Logged, and the how the recovery model option of the database affects the way the SQL Server Engine works with the transaction logs.

SQL Server Statistics in Always On Availability Groups

SQL Shack

Introduction to SQL Server Statistics SQL Server Statistics are an essential part of query performance in SQL Server. They help the query optimizer to prepare a query plan using the distribution of values in participating rows.

Managing High Availability in PostgreSQL – Part II

Scalegrid

repmgr enables you to setup standby servers, promote standbys, do a switchover, and monitor the status of your PostgreSQL cluster. repmrg not only manages the replication of PostgreSQL clusters, but also has capabilities for setting up the standby servers for replication. Following the initial installation, we need to make changes to the repmgr configuration file (repmgr.conf) with the required details on each server. Standby Server Tests. Reboot the server.

AWS RDS SQL Server – Monitoring database instances

SQL Shack

In this article, we will review how to monitor AWS RDS SQL Server database instances and setup email notifications using event subscriptions and CloudWatch alarms.

AWS 64

SQL Server on IoT Edge and Developer Machines – Smaller Footprint

SQL Server According to Bob

SQL Server will ship Azure SQL Database Edge: [link]. With the announcement I can tell you more about one of the things we have been working on; SQL Server running on IoT Edge and Developer machines in under 500MB of memory. The effort focuses attention on memory usage and disk space requirements of SQL Server. As you can imagine, with a code base as large and vast as SQL Server, there is always room for improvement. SQL Server enables client mode garbage collection.

IoT 54