A Taste of What’s Cooking at US Foods Delphix User Experience Bobby Durrett, Technical Architect.

20

Transcript of A Taste of What’s Cooking at US Foods Delphix User Experience Bobby Durrett, Technical Architect.

Page 1: A Taste of What’s Cooking at US Foods Delphix User Experience Bobby Durrett, Technical Architect.
Page 2: A Taste of What’s Cooking at US Foods Delphix User Experience Bobby Durrett, Technical Architect.

A Taste of What’s Cooking at US Foods

Delphix User Experience

Bobby Durrett, Technical Architect

Page 3: A Taste of What’s Cooking at US Foods Delphix User Experience Bobby Durrett, Technical Architect.

3FOOD. FOOD PEOPLE. EASY.

Introduction – US Foods

• Bobby Durrett– Oracle DBA, performance tuning specialist

• US Foods – 2nd largest food distributor in USA

Two key applications share production database

Customer AppSupplier App

FOOD SUPPLIERS CUSTOMERS

Heavy batch loads

Page 4: A Taste of What’s Cooking at US Foods Delphix User Experience Bobby Durrett, Technical Architect.

4FOOD. FOOD PEOPLE. EASY.

Architecture of Original Customer Application

QATDEV PROD

5 TB

SAN

1 TB

SAN

6 TB

SAN

Unix Physical Host

Unix Physical Host

► ► ► ► ► ► ►

• Used Oracle import and export utilities for refresh

• Refresh took several days

• Usually only performed partial refresh

• DEV and QAT used expensive SAN, had less memory

► ► ► ► ► ► ►

Slow Refresh

Subset of production data

Page 5: A Taste of What’s Cooking at US Foods Delphix User Experience Bobby Durrett, Technical Architect.

5FOOD. FOOD PEOPLE. EASY.

Architecture for Suppliers Project w/o Delphix

PRODQAT

6 TB

SAN

6 TB

SAN

SITDEV

► ► ►

1 TB

SAN SAN

1-6 TB

CUSTOMERS APP

SITDEV

► ► ►

1 TB

SAN SAN

1-6 TB

SUPPLIERS APP

► ► ►

Storage $$$

Storage $$$Storage $$$

• Added storage expense

Slow Refresh

• Continued difficulty performing refresh

Page 6: A Taste of What’s Cooking at US Foods Delphix User Experience Bobby Durrett, Technical Architect.

6FOOD. FOOD PEOPLE. EASY.

Architecture with Delphix

SITDEV2

► ► ►

1 TB

VDB VDB

1-6 TB

CUSTOMERS APP

SITDEV

► ► ►

1 TB

VDB VDB

1-6 TB

SUPPLIERS APP

• 20TB virtual 8TB real

• Sync with production

QAT2

6 TB

VDB

PROD

6 TB

SAN

Page 7: A Taste of What’s Cooking at US Foods Delphix User Experience Bobby Durrett, Technical Architect.

7FOOD. FOOD PEOPLE. EASY.

Architecture: 1:1 Correspondence of VDBs to Virtual Machines

PHYSICAL HOST (HP-UX ITANIUM BLADE)

Virtual Machine Virtual MachineVirtual Machine

Virtual Machine Virtual Machine

Page 8: A Taste of What’s Cooking at US Foods Delphix User Experience Bobby Durrett, Technical Architect.

8FOOD. FOOD PEOPLE. EASY.

Benefits: Usability and Speed – Fast Clones

Time for full refresh from production:

• Days for export/import

• Hours for RMAN

• Minutes for Delphix

Ease of Use

• Point and click with Delphix

• Manual effort for RMAN and export/import

Page 9: A Taste of What’s Cooking at US Foods Delphix User Experience Bobby Durrett, Technical Architect.

9FOOD. FOOD PEOPLE. EASY.

Benefits: Production Recovery with Delphix

• Production data table accidentally emptied/dropped

• Even with Oracle bug slowing recovery process, missing table restored in 3 hours vs. overnight with RMAN

• Data recovery capability was unexpected benefit

Continuous Data Protection

X

TABLE DAMAGED TABLE RESTORED

2 HOURS

Restore from point in time just prior to

drop

Page 10: A Taste of What’s Cooking at US Foods Delphix User Experience Bobby Durrett, Technical Architect.

10FOOD. FOOD PEOPLE. EASY.

Benefits: Better Development Support

Choose snapshot at specific point in business cycle.

Production DB Snapshots

Create VDB from Snapshot. Apply

release package and table changes.

SIT V1

Snapshot SIT V1 after changes

applied.

SIT V1 Snapshot

Create VDB from SIT V1 Snapshot. Run batch jobs.

Refresh as needed.

SIT V2

Refresh

SAN

Page 11: A Taste of What’s Cooking at US Foods Delphix User Experience Bobby Durrett, Technical Architect.

11FOOD. FOOD PEOPLE. EASY.

Challenges: Installation

Rush to Get In High Ping Times

Network Flow Control Deployed on Slower Disks

Page 12: A Taste of What’s Cooking at US Foods Delphix User Experience Bobby Durrett, Technical Architect.

12FOOD. FOOD PEOPLE. EASY.

Challenges: Performance issues with first release

Network link too slow for full test

Used Delphix to move back to physical DB

Performance testing on refreshed QAT

1

2

3

Page 13: A Taste of What’s Cooking at US Foods Delphix User Experience Bobby Durrett, Technical Architect.

13FOOD. FOOD PEOPLE. EASY.

Challenges: Performance issues (cont’d)

DEV VM

Physical host

SIT VM

• Directly attached one VM to physical network port

• Second port shared via virtual switch

Virtual Switch

Page 14: A Taste of What’s Cooking at US Foods Delphix User Experience Bobby Durrett, Technical Architect.

14FOOD. FOOD PEOPLE. EASY.

Challenges: Performance Difference due to Direct I/O

• Direct I/O means bypass Unix filesystem cache – required by Delphix

• Production database does not use direct I/O

• Direct path reads bypass database buffer cache

• Batch jobs doing direct path reads faster in production

UNIX Cache

DB Cache

Direct Path Read

Normal Read

Normal Read

Direct Path Read

Nor

mal

I/O

D

irect

I/O

Page 15: A Taste of What’s Cooking at US Foods Delphix User Experience Bobby Durrett, Technical Architect.

15FOOD. FOOD PEOPLE. EASY.

Implementation Notes: Replaced 5 VMs with one Physical Host

Moved off VMs to speed up network

• Each DB gets good network connection

• Each DB gets different directory path

• i.e. /opt/xyz/dbname instead of /opt/xyz

• Used host that originally held VMs

Shutdown VDBs on VMs

Point VDBs to new host name – no data

migration

Shutdown VMs Bring up VDBs on physical host

1 2 3 4

Easily Migrated VDBs from VMs to Physical Host

Page 16: A Taste of What’s Cooking at US Foods Delphix User Experience Bobby Durrett, Technical Architect.

16FOOD. FOOD PEOPLE. EASY.

Implementation Notes: Disk Space

• Need to leave 25% free

• Heavy batch updates require more disk space

• Production Updates

• More changed blocks per snapshot

• More archive logs

• Testing updates

• Larger VDBS

Page 17: A Taste of What’s Cooking at US Foods Delphix User Experience Bobby Durrett, Technical Architect.

17FOOD. FOOD PEOPLE. EASY.

Implementation Notes: Refresh Scripts

• Before and after refresh scripts

• Users and passwords, permissions, directories

• Resize redo logs

• Refresh Script

• Command line instead of GUI web page

• SSH to Delphix Machine

• Command language

• Delphix consulting developed

• Sudo to let developers run own refresh

Page 18: A Taste of What’s Cooking at US Foods Delphix User Experience Bobby Durrett, Technical Architect.

18FOOD. FOOD PEOPLE. EASY.

Conclusion

• Successful project to move supplier app off mainframe

• Supported three releases of major development project

• Performed key recovery of production data

• Depends on good network connection

• Must use direct I/O

• Fast physical clone of production

Page 19: A Taste of What’s Cooking at US Foods Delphix User Experience Bobby Durrett, Technical Architect.

19FOOD. FOOD PEOPLE. EASY.

[email protected]

http://www.bobbydurrettdba.com

Page 20: A Taste of What’s Cooking at US Foods Delphix User Experience Bobby Durrett, Technical Architect.