• No results found

Distributed Handler Architecture (DHArch)

N/A
N/A
Protected

Academic year: 2020

Share "Distributed Handler Architecture (DHArch)"

Copied!
32
0
0

Loading.... (view fulltext now)

Full text

(1)

Distributed Handler

Architecture (DHArch)

Beytullah Yildiz

[email protected]

(2)

Outline

Web Service handler concept

Motivations and research issues

Distributed Handler Architecture

(DHArch)

Measurements and Analysis

(3)

Web Service Handler I

Additive functionality to Web Services

Called as either

handler

or

filter

Supports more modular architecture;

separation of tasks

Processes SOAP header and body

Incrementally adds new capability to Web

Service endpoint

Many handlers can get together to build a

chain

(4)

Web Service Handler II

• Conventional handler structures

– JAX-RPC

– Apache Axis

– Web Service Enhancement (WSE)

(5)

Handler Examples

• Security, reliability, logging, monitoring, compression and so on

• Mediators; especially between WS-specs

• i.e WS-Reliability and WS-Reliable Messaging

• WS- specifications

5

Specification Standard by Implemented by

WS-Reliability OASIS CGL

WS-Reliable Messaging Microsoft, IBM,… CGL, Apache

WS-Addressing Microsoft, IBM,… Apache

WS-Security OASIS Apache

WS-Eventing Microsoft, IBM,… CGL , Extreme Lab

WS-Notification OASIS Apache, Extreme Lab

WS-Resource Framework OASIS Apache

WS-Trust OASIS Extreme Lab

(6)

Motivations

Web Services utilizing many handlers

Fat services

A handler causing

Bottleneck

convoy effect

Benefits for reusability

a handler utilized by many Web Services

a handler exploited by both client and

(7)

Motivating Scenario

Many handlers with possible substantial cost

The cost of the sequential handler execution

where T

k

is the k

th

handler execution time

A bottleneck handler

(8)

Research Issues I

Performance

– the benefits and costs of distributing handlers

Scalability

– throughput

– the number of handlers for deployment

Parallelism/concurrency

– Handler parallelism

– Pipelining for the messages

Flexibility and Extensibility

– interoperable with other SOAP processing engine

(9)

Research Issues II

Orchestration

Efficient and effective handler orchestration

Messaging for the distributed handlers

the way of distribution – task distribution

advantages and disadvantages

Principles for distributing a handler

conditions and requirements

(10)
(11)

Communication Manager

Manages internal messaging

Utilizes a MOM, NaradaBrokering (other

MOMs could be used)

Publish/Subscribe paradigm

Queuing regulates message flow

Asynchronous messaging

Guaranteed message delivery

Fast and efficient

Scales very well

XML based messaging for the handlers

(12)
(13)

Messaging Format

• Serialization of message context on the wire

• Extensible and flexible

• Consists of three main parts: – ID

• 128 bit UUID generated key

– Properties

• Conveys the necessary properties to the handler

– Payload

(14)
(15)

Gateway

Interface

between DHArch and A Web Service

Container

Provides

extensibility

Facilitates interoperation with other SOAP processing

engines

A gateway needs to be deployed for SOAP processing

engine that need to be interoperate with.

(16)

Description and Execution of Orchestration

Separation of the flow

directives and corresponding

execution

The directives comprise four

basic constructs:

sequential

parallel

looping

conditional

Engine manages two

(17)

Distributed Handler Message Context

• Keeps necessary

information about a message to carry out the execution

• A unique context associated with each message.

• The orchestration structure is maintained within the

context.

• Encapsulates

• the message

• orchestration structures

• handler related parameters

• parameters associated with the stages

(18)
(19)

Message traversal in

the stages

• A message travels from stage to stage.

•Every handler

orchestration contains at least one stage.

•Every stage contains at least one handler.

• Within a stage, handlers executed parallel.

• A message cannot exit a stage without completion of the execution of its

constituent handlers.

(20)

Summary of the Execution

Separation of the description from the execution

prevents the orchestration engine from becoming

too complex.

DHArch utilizes two context objects:

Interacting Web Service container context

– Distributed Handler Message Context (DHMContext)

Queues are leveraged to regulate the message flow.

Caching expedites the message processing by

decreasing the access time.

(21)

Benchmarks

The set of benchmarks

Performance

Scalability

Overhead

The deployment of well known WS- Specifications

Utilized Handlers in these benchmarks

Created for the benchmarking purposes

Actual handlers

(22)

Benchmark I-

Performance

I

3.

4.

5.

Handler A CPU Bound

Handler

Configurations

Apache Axis sequential DHArch Sequential

Stage 1 A, C Stage 2 B,D Stage 3 E Stage 1 A, B Stage 2 C,D Stage 3 E

Stage 1 A,B,C,D •The goal is to measure the performance

for a single request.

•Every measurement is observed 100 times.

•Five handlers are utilized, six handler (software) configurations are selected. •Hardware configurations

•Single processor •Multiprocessor •Multicore

(23)

Handler Configurations Axis Only Using by DHArch

Benchmark I- Performance II

(24)

Benchmark II- Scalability I

The goal is to measure the execution time while the

message rate increases.

(25)

Benchmark II- Scalability II

25

qApache Axis utilizes single machine

(26)

Benchmark II- Scalability III

Without handler parallelism

– DHArch increases the execution time because of the distribution overhead.

– DHArch running on a cluster increases the throughput.

With handler parallelism

– We can achieve both increased message throughput and reduced execution time for per message.

(27)

Benchmark III- Overhead I

• The goal is to measure the overhead related to the distribution of a single handler.

• In every step, measurements are observed 100 times.

• Four hardware configurations are utilized.

• Multiprocessor results will be illustrated.

(28)

Benchmark III-Overhead II

(29)

Benchmark

IV-WSRF and WS-Eventing I

29

• The goal is to show the deployment of the well-known WS-specifications in DHArch.

– WS-Eventing (CGL)

– WS-Resource Framework (Apache)

• A sensor stateful resource and relevant events are created.

• The sensor is motivated by CGL work on GPS sensors.

(30)
(31)

Contributions

• System research

• A distributed handler architecture

• Efficient, scalable, modular and transparent • Concurrent handler execution

• Pipelining for the message execution

• Separation of the description and the execution for the handler orchestration

• Queuing to regulate flows

• Message based handler sequence

• Identifying the circumstances where this architecture has advantages

• Parallelism within the handlers • Easy use multiple-machine clusters

• Comprehensive benchmarks to evaluate the handler distribution for Web Services

• System software

• A prototype: DHArch

• WS-Eventing and WSRF deployment

(32)

Future Works

Using DHArch for the internal functions of Web

Service Container: implicit handlers

An agent that finds the best orchestration

configuration for the distributed handler

– dynamic load balancing

Improving fault tolerance

Security

– NaradaBrokering Security Framework

Comparison with the XSUL+DEN, another approach

References

Related documents

As consequence, this paper contains a study on the effect of the rotor bar number on the torque (average and quality) of five-phase induction machines under different supply

The whole system, with external I/O IGBT fiber optic gate signals, executes in real- time at 80 µ s time step under the RT-Lab real-time distributed simulation software on

• In-charge of the Institute’s media relations – establishing and maintaining links with journalists; preparing key outward-bound communication materials such as commentary

Similarly these normalized rank-1 CP matrices together with the normalized extremely bad matrices constitute the extreme points of ( 23 ).. We prove

AND FURTHER THAT Council appoints Mayor Molnar, Councillor Parker and Councillor Gilvesy to the CAO Performance Review Committee; AND FURTHER THAT Council approves the proposed

The algorithm trains a classifier for combinations of parameter values and applies user-defined objective functions, such as the classification error, the sensitivity, or

31 Dette er rimelig siden vi prøver ˚ a forklare hvorfor sekter kunne etablere seg 32 Det engelske ordet coping har jeg her oversatt til h˚ andtering... 3) søke etter en

Guides for assessing community gang problems and implementing intervention and prevention strategies, part of the Office of Juvenile Justice and Delinquen- cy