64
ArcGIS Enterprise Performance and Scalability Best Practices Andrew Sakowicz

ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

  • Upload
    others

  • View
    10

  • Download
    1

Embed Size (px)

Citation preview

Page 1: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

ArcGIS Enterprise Performance and Scalability Best PracticesAndrew Sakowicz

Page 2: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Agenda

• Definitions• Design workload separation• Provide adequate infrastructure capacity• Configure• Tune• Test• Monitor

Page 3: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Definitions

Page 4: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Performance

• Speed, e.g. response time (seconds)

Page 5: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Scalability

• The ability to increase output and maintain acceptable performance

Page 7: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Capacity

Throughput(req/hr)

CPU Utilization (%)

Memory used (Mb)

Network used (Mbps)

Content length (bytes)

Response Time (sec)

Time

User load

Capacity (~ 85% utilization)

Page 8: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Process, Tools, Value

Page 9: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Process and toolsEsri tools

Page 10: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Tools download location

• ArcGIS Monitor- https://my.esri.com/

• Others- http://www.arcgis.com- owner:EnterpriseImp- Show ArcGIS Desktop Content

Page 11: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Enterprise Implementation Maturity Model

Level Architectural Design and

Capacity Planning

Performance and Scalability Testing

Monitoring Trend Analysis and

Quantification

0 No No No No

1 Yes No No No

2 Yes Yes No No

3 Yes Yes Yes No

4 Yes Yes Yes Yes

Page 12: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Design workload separation

Page 13: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

ArcGIS Server sites

• Pre-planning is important• Isolate hosting server site from traditional GIS Server duties• Have dedicated GIS Server sites for various purposes: • heavily used map services, geoprocessing services, …

Portal for ArcGIS

Hosting Server

ArcGIS Data Store(relational + tile cache)

Web Adaptor

GeoEventServer

ArcGISServer

Page 14: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Provide adequate infrastructure capacity

Page 15: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Provide sufficient hardware resources

GIS Systems are bound by:1. CPU - typically2. Memory – when large number of services3. Disk – Image Service, Synchronization4. Network – low bandwidth deployment5. Poorly configured virtualization can result in 30% or higher performance degradation

Most systems are CPU bound

Most well-configured and tuned GIS systems are CPU bound.

Page 16: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

InfrastructureMemory requirements

Wide ranges of memory consumptions

Item Low HighArcSOC Map 50 MB 500 MB

ArcSOC Image 20 MB 1,024 MB

ArcSOC GP 100 MB 2,000 MB

XenApp Session 500 MB 1.2 GB

Database Session 10 MB 75 MB

Database Cache 200 MB 200 GB

Page 17: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Server CPU Spec

• Performance is impacted by SPEC Rate Per Core• Scalability is impacted by number of cores and SPEC Rate Per Core

Page 18: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Network Planning Establish and Configure DNS Appropriately!

Trace Route: LA Workstation Phoenix DNSLA Database Server

Page 19: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

VM – watch out for overallocations

88/314=0.28 cpu/vm92/176=0.52 cpu/vm

119722 vMotion Migrations

Page 20: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Scaling Direction

• Scaling up- Adding resources to your existing machine- Usually RAM- Commonly, due to lots of service instances

• Scaling out- Add more machines- Usually to get more compute power, sometimes for high availability- Commonly, due to increased user demand

Page 21: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Configure

Page 22: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

File Geodatabase

• Local file geodatabase data- Better than shapefiles- Fastest- Scales with hardware- Best with static data- Make your FGDB read-only

Page 23: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Enterprise Geodatabase

Enterprise Geodatabase- Fast- Live data- Requires database expert- Traditional Versioning

- fine for desktop editing, may be problematic for server- Branch Versioning

- New with Pro 2.1 and Enterprise 10.6. Not supported with ArcMap.- Designed for better scalability with many concurrent users and a

web editing modelKeep statistics up-to-dateIndex fields that will be queried

Page 24: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Configure Web MapCache and generalize data

• Use generalized data if applicable • Cache (tiles) may reduce the amount of traffic• Large amounts of data can be slow and overwhelming

- Aggregate data using smart mapping- on-the-fly generalization and smaller data transfer (quantization)

Page 25: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Consolidate and reduce number of services

Enterprise portal GIS Server Data Store

Dataset

GIS Service

GIS Service

GIS Service

Web Layer

Web Layer

Web Layer

• Common setup today:

Page 26: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Consolidate and reduce number of services

GIS Server Data Store

DatasetGIS Service

Web Layer

Web Layer

Web Layer

Enterprise portal

• More efficient: consolidate layers with like security into a single service

Page 27: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Consolidate and reduce number of services

GIS Server Data Store

WellsWells

Active Wells

Proposed Wells

Wells by Status

Enterprise portal

Page 28: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Configure login for your Enterprise portal

Login settings- Identity and group stores can affect login performance

significantly- Example: Active Directory where users are in many groups can

affect performance (newer releases handle this better)

Page 29: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Configure ArcGIS Server- instance tuning

• For predictable performance use min = max• Default is min = 1, max = 2. Consider changing this!• Allocate required swap space/page file• Cached service : set max = 1 to conserve memory. Individual tile requests not

serviced by the SOC process.

Page 30: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

New ArcGIS Server 10.7 shared instances

• Recommended for services that receive infrequent requests, particularly when the server site hosts many services

• Pool of processes supporting multiple services• Conserves memory

Currently supports only map services published from ArcGIS Pro

Page 31: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Use Case: Implementing ArcSOC Optimizer at ExxonMobil

Page 32: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

ArcSOC Optimizer is an ArcGIS Monitor extension

• Decrease or increase instances, based on: • 1. historical usage • 2. available memory and process count

Page 33: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

ArcSOC Optimizer

30 day decreases instances 1 day increases instances

Page 34: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

The Issue• What

- ArcGIS Server instability & frequent outages• Why

- Rapid growth of WebGIS- Time required to increase server capacity- Manual adjustment of ArcSOC processes

• The bottom line- Reactive & unsustainable service management paradigm- Unhappy WebGIS users

Page 35: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Results & Benefits• Initial run

• Significant reduction of total number of SOCs • Increase in free memory• Identification of over utilized services

Orange – total SOCs, Green – free memory

Blue – change in SOCs for individual services

Page 36: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Results & Benefits- The results speak for themselves

- Vastly improved stability of ArcGIS Server- Improved response times of services- Staff time freed for other activities- Happy WebGIS users!!!

Page 37: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Tune

Page 38: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Tuning methodologyProfile each tier starting from the top

Browser

Web Server

ArcGIS Server

ArcSOC

Total Response Time (t1-t2)

Wait Time

Search & Retrieval Time

Usage Time

ArcSDE/DBMS

t1 t2

Page 39: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

FiddlerFiddler measurement approximately 5.2 seconds

Page 40: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Mxdperfstathttp://www.arcgis.com/home/item.html?id=a269d03aa1c840638680e2902dadecac

Page 41: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Oracle TraceCompare elapsed time

• Elapsed time slightly changed due to different test runs

Page 42: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Oracle Execution planInefficient spatial index

Page 43: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Test

Page 44: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Testing Objectives

- Meet Service-Level Agreement (SLA)- Bottlenecks analysis- Capacity planning- Benchmarking different alternatives

Page 45: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Testing process

Application

GIS Services

Infrastructure: Hardware and Software

Page 46: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

System Test for WebGIS Test Automation

• ArcGIS Services- Mapping- Feature Service- OGC- Geocoding- Image Service - Network Analyst- Geoprocessing- Tile Cache

• Application Testing• Discipline relevant report

Application

GIS Services

Infrastructure

Page 47: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Web test tools feature comparison

Tool Cost LearningCurve

OS Metrics GIS Data Generation

GIS Test Automation

Load Runner High High Windows/Linux No No

Visual Studio Medium High Windows No No

JMeter Free High Requires additionalplugin

No No

System Test Free Low Windows/Linux Yes Yes

Page 48: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

System Test for Web

Page 49: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

System Test for Web

Page 50: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Monitor

Page 51: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

https://arcgismonitor.esri.com/

ArcGIS MonitorDemo Site

Page 52: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Root Cause Analysis (RCA)“Source” - the most downstream failing component“Impact” – all upstream failing components

Portal for ArcGIS

Hosting Server

ArcGIS Data Store(relational + tile cache)

Web Adaptor

GeoEventServer

ArcGISServer

“Impact”

Portal for ArcGIS

Hosting Server

ArcGIS Data Store(relational + tile cache)

Web Adaptor

ArcGISServer

“Impact”

GeoEventServer

Example 1 Example 2

“Source”

“Source”

Page 53: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Overloaded systemLoad exceeds the designed capacity

Source Impact

Page 54: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Example: ArcGIS Monitor usage spike Throughput (tr/s)

Page 55: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Bottleneck

Source Impact

Page 56: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Example: ArcGIS Monitor free instances = 0 Bottleneck are often created by increased load

Page 57: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Unstable InfrastructureInterruption to the underlying resources

Source Impact

Page 58: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Example: ArcGIS Monitor CPU spike by unexpected processe.g. virous scan

Page 59: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Example: ArcGIS Monitor CPU Portal for ArcGIS Server service stopped

Page 60: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Example: ArcGIS Monitor CPU ArcGIS Server machine rebooted

Page 61: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Example: ArcGIS Monitor CPU Database not running

Page 62: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Summary

• Design workload separation• Provide adequate infrastructure capacity• Configure• Tune• Test• Monitor

Page 63: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Print Your Certificate of AttendancePrint Stations Located at L Street Bridge

Tuesday Wednesday12:30 pm – 6:30 pm GIS Solutions Expo Hall D

5:15 pm – 6:30 pm GIS Solutions Expo SocialHall D

10:45 am – 5:15 pm GIS Solutions Expo Hall D

6:30 pm – 9:00 pm Networking ReceptionNational Museum ofNatural History

Page 64: ArcGIS Enterprise: Performance and Scalability Best Practices · 2019 Esri Federal GIS Conference – Presentation, 2019 Esri Federal GIS Conference, ArcGIS Enterprise: Performance

Please Take Our Survey on the AppDownload the Esri Events app and find your event

Select the session you attended

Scroll down to find the feedback section

Complete answersand select “Submit”