• No results found

Managing Relativity SQL log files

N/A
N/A
Protected

Academic year: 2021

Share "Managing Relativity SQL log files"

Copied!
6
0
0

Loading.... (view fulltext now)

Full text

(1)

Managing Relativity SQL log files

January 29, 2016 - Version 9.2

(2)

Table of Contents

1 Managing Relativity SQL log files 3

2 Overview 3

3 Log maintenance tips 3

4 Setting the size of an SQL log file 4

(3)

Relativity | Managing Relativity SQL log files - 3

1 Managing Relativity SQL log files

This guide provides tips for keeping log files healthy and describes a procedure for properly sizing log files. Keep in mind that you should consistently be monitoring the log files. If the log drive fills up, SQL stops, and when SQL stops, Relativity stops.

2 Overview

Relativity databases typically exist in fast-growing environments with high activity. Because databases usually grow until an admin closes the case, in terms of size stability, the concept of maturity does not apply.

It’s important for log files to be healthy because all transactional data flows through these files. Unhealthy log files can result in bottlenecks. If the log files are too small, large transactions slow down the environment because log files – even with instant file initialization turned on – need to write zeroes in order to grow. As databases grow, log file maintenance becomes increasingly important.

3 Log maintenance tips

Consider the following tips when maintaining log files:

n Ensure that log file backups are set to run at least once every hour. Consider running more often in the

following scenarios:

o You want to recover with less than one hour of data loss.

o More data can be written to the log file in one hour than is desirable.

o The amount of data written to the log file in one hour causes the log file to fill up the drive. SQL

marks space in the log file as reusable once it is backed up, so it shouldn’t grow too large.

Note:Some single transactions in Relativity are quite large and may result in log file growth through multiple transaction log backups. This can prevent successful log backups. Contact kCura Client Services if this happens, and let them know what action caused it.

n Use the Dr. FeelGood utility to check how many Virtual Log Files (VLFs) appear in the logs. We

recom-mend 50 for most databases; more than 50 VLFs is acceptable for large databases; more than 1,000 VLFs indicates a problem that requires immediate attention.

n Ensure that the autogrowth of the log files is set to at least 512 MB, but no more than 1 GB. When log

file growth occurs, zeroes must be written to disk before anything else is written to the log file. Setting autogrowth too high can cause other transactional activity to be suspended while autogrowth is in pro-gress.

n In certain situations Relativity begins an operation, such as a large data load, and many gigabytes of

data pour into the log file before the next scheduled log backup marks space as available. Unanti-cipated growth can also occur when extremely large transactions run. Should this occur, contact [email protected].

(4)

If you find that, even with proper transaction log backups, your log files are growing too large, contact kCura Client Services. If you know that you will be creating hundreds of gigabytes of new data in your database, we strongly recommend that you grow the log file during a maintenance window beforehand. This reduces environmental impact when loading during the day.

4 Setting the size of an SQL log file

The following procedure gets you to about 50 VLFs using the Set Initial Size interface. Log file growth uses the following logic to decide how many VLFs to make.

n For growth of 64MB or less, 4 new VLFs are added

n For growth between 64MB and 1GB, 8 new VLFs are added n For growth over 1GB, 16 new VLFs are added

Before you begin this procedure, perform a full backup, and make sure there are no transactions running.

WARNING:This work may have heavy environmental impact. It should only be performed in a maintenance window.

Perform the following steps to set the size of an SQL log file:

Note:You should test this process on a test database and time it as a baseline. 1. Right-click the database and selectProperties.

2. ClickFiles.

3. ClickInitial Sizeand set it to1. This will drop you down to 3 VLFs. If the log file does not shrink, run Truncate Logs v3.5. If it does shrink, it will be between 1-70 MBs.

4. ClickInitial Sizeand set it to 1/3 the size you want. This can take a few seconds or several minutes as the log file grows.

For a target file size greater than or equal to 25GB, grow the file in 8GB chunks rather than thirds of the target size.

5. Set theInitial Sizevalue to 2/3 the final size.

For a target file size greater than or equal to 25GB, grow the file in 8GB chunks repeatedly until you're within 8GB of the target size.

6. Set theInitial Sizevalue to the target size.

This method should produce around 50 VLFs or a value twice that of your target file size in GB for larger databases.

Run the Dr. FeelGood utility to see your results. New workspaces copy the LDF file from the database of the template case, but the LDF for the new workspace is shrunk upon workspace creation. This means that new workspaces will always have approximately the same LDF file size and VLF count upon creation and should have this maintenance procedure performed prior to any large data imports.

(5)

Relativity | Managing Relativity SQL log files - 5

4.1 Log file sizing considerations

If you know you’re going to perform maintenance on your database that will require a complete copy of a large table, consider making the log file as big as that table and its indexes. You should continuously monitor your log files and adjust accordingly.

(6)

Proprietary Rights

This documentation (“Documentation”) and the software to which it relates (“Software”) belongs to kCura LLC and/or kCura’s third party software vendors. kCura grants written license agreements which contain restrictions. All parties accessing the Documentation or Software must: respect proprietary rights of kCura and third parties; comply with your organization’s license agreement, including but not limited to license restrictions on use, copying, modifications, reverse engineering, and derivative products; and refrain from any misuse or misappropriation of this Documentation or Software in whole or in part. The Software and Documentation is protected by theCopyright Act of 1976, as amended, and the Software code is protected by theIllinois Trade Secrets Act. Violations can involve substantial civil liabilities, exemplary damages, and criminal penalties, including fines and possible imprisonment.

©2016. kCura LLC. All rights reserved. Relativity® and kCura® are registered trademarks of kCura LLC.

References

Related documents

Fertilindo Agrolestari perusahaan yang menghasilkan produk pupuk organik merupakan prioritas pertama dalam proyek peningkatan kualitas Six Sigma.Penentuan obyek Penelitian

THE IMPACT OF PHYSICAL ACTIVITY ON EXECUTIVE FUNCTION AND HEALTH- RELATED QUALITY OF LIFE IN YOUTH WITH TYPE 1 DIABETES MELLITUS.. A Dissertation

Czech POINT as a “fingers” - network of contact points of public administration.. Communication infrastructure of public administration (KIVS) as the “circulatory system” - de

However, each of our similarities is based on different characteristics of the drugs (DrugBank taxonomy, textual information and molecular structure). Might be the case that

This takes place because the strong base neutralises some of the acid molecules forming its conjugate base of the weak acid.. - At the point equidistant from the start and

Actuators Local Virtualization Access Point Utilization Repository Management Node Power Usage Repository Coordinator 1 Platform Manager Cluster VirtualizationManager Coordinator

Regarding requirement R-9 for the role P.9 Project Manager (Level 3): Considering that the client has altered the requirement M-3 to accept government experience accepted at

Leventhal (2006), highlights that playing is a way to wake up children’s curiosity to learn English. Thus, ludic activities are considered powerful because they have shown to