HADB Technology within Sun Application Server - PowerPoint PPT Presentation

1 / 26
About This Presentation
Title:

HADB Technology within Sun Application Server

Description:

Modified Attribute only persist those attributes that were modified. Background Frequency ... persist all session state each time. Can be configured for other ... – PowerPoint PPT presentation

Number of Views:35
Avg rating:3.0/5.0
Slides: 27
Provided by: javazo
Category:

less

Transcript and Presenter's Notes

Title: HADB Technology within Sun Application Server


1
HADB Technology within Sun Application Server
  • Manyi Lu
  • Product Manager
  • Sun Database Technology Group

2
Agenda
  • High-availability database former Clustra
  • Application server overview
  • Load balancing
  • Session persistence
  • Session failover
  • HADB technology

3
Introduction Sun in Trondheim
  • Software organization Database technology group
  • Originally Clustra AS, Acquired by Sun in Feb
    2002
  • Focus
  • High availability database systems
  • Open source Java database - Derby
  • Approx. 50 employees

4
Sun Application ServerEnterprise Edition
  • Sophisticated multi-machine management
  • Performance Tuned for Web Tier, Web Svcs, Message
    Queue
  • Horizontal scalability with built-in load
    balancing
  • 5-Nines (99.999) HA for J2EE Apps
  • Full session state fail-over

Includes
High Availability Scalability
Admin Tools Optimized Runtime
Target Highly Available Enterprise Deployments,
Business Critical Applications
J2EE Platform Binary
5
(No Transcript)
6
HTTP Load Balancing
  • Load Balancing of Web/HTTP Path
  • Sticky round robin LB with session affinity
  • Route requests Instances, single/multi-Cluster
  • Implemented via Cookies, URL rewriting
  • Health checks detect failed/recovered instance
  • Dynamic fail-over to available Instances
  • Multi-cluster aware
  • Sun web server and Apache web server

7
High Availability with Session Persistence
Firewall
Load Balancer
  • Mission Critical Applications
  • Continuos serviceability
  • Session state never lost, high value TRX's
  • Tolerate failure(s)
  • Failure(s) completely user transparent

Web Server
Web Server
Web Server
Plug-in
Plug-in
Plug-in
Firewall
cluster1
App Server SE
App Server SE
App Server SE
App Server SE
Shared Nothing Architecture
HADB
8
HTTP Session Persistence
  • Frequency When is it persisted
  • Configurable timer
  • End of Web Request
  • Scope What's persisted
  • Whole session (every request)
  • Modified session (request session mod)
    HttpSession.setAttribute() removeAttribute()
  • Modified Attribute only persist those
    attributes that were modified

9
Background Frequency
Web Client
HADB
S1AS
request
response
request
response
persist
background thread
10
Web Request Frequency
Web Client
HADB
AS
request
process request
persist
response
11
Persistence Scope
  • Can reduce volume of data persisted by changing
    persistence scope
  • Default is to persist all session state each time
  • Can be configured for other scopes
  • Modified session
  • Modified attribute

12
Modified Session Scope
  • Only persist session state if it was modified
  • Requires that application call HttpSession.setAttr
    ibute() or HttpSession.removeAttribute()
  • Gives better throughput
  • Improves latency on web requests that don't
    change state

13
Modified Attribute Scope
  • Can be configured to only persist those
    attributes that were modified
  • Gives best throughput and latency
  • Requires calls to HttpSession.setAttribute() and
    HttpSession.removeAttribute()
  • Can not have cross-references between attributes

14
Session Fail-over in Action
Load Balancing
Session state is stored ina highly available
datamanager that is distributedacross all
servers.
Load Balancer
Server 1
Server 2
AS 3
AS 4
AS1
AS 2
B
D
A
C
HADB
If a server fails, any other server can retrieve
the session state so the application can continue
from where it left off
Server 2
Load Balancer
AS1
AS 4
1st multi-node failure resilient manageable and
distributable HA solution
AS 2
AS 3
B
C
A
D
HADB
15
(No Transcript)
16
(No Transcript)
17
(No Transcript)
18
(No Transcript)
19
(No Transcript)
20
(No Transcript)
21
(No Transcript)
22
Full On-line Maintenance
  • Continuous operation duringhardware replacement.
  • Continuous operation duringsoftware upgrades.
  • Continuous operation whilescaling up.

10
9
23
(No Transcript)
24
(No Transcript)
25
(No Transcript)
26
Q A
  • Manyi Lu
  • Manyi.Lu_at_sun.com
Write a Comment
User Comments (0)
About PowerShow.com