in application, e.g., package tracking and customer relationship management (CRM). Hence, there is aneed for a standard technology that allows applicationsto communicate with each others over Internetregardless of the platform differences. Web service(WS) [10] is a highly standard technology invented byW3C for this purpose. There are a series of standardscover web service technology including area such asnaming, WS description language, WS messaging, WSsecurity. The advantage of web service is that it is awell support standard with a rich set of developmenttool and environment. In this work, web service is akey technology being applied to provide a parallel/distributed execution of VaR calculation.Although web service can be utilized as a commoncommunication infrastructure, parallel execution of theapplication still requires a mechanism to distributeapplication execution to each compute node inside thecluster. The balancing of the execution load amongcompute nodes is one of the determining factors of thesystem overall performance. For example, a poor load balancing algorithm may cause some computers to bear a large amount of loads while other computers maytake up small loads or be idle. Load balancing is afield of active research. The random balancing andround robin balancing algorithms are some examplesof well-known and widely-used methods.The random balancing algorithm randomly choosesa computer to handle a new incoming load. The appealof this algorithm is in its simplicity and efficiency on alarge cluster. However, it generally performs poorly ona small cluster and a seriously load unbalanced can becaused by a bad randomization algorithms. The roundrobin algorithm has a strategy to prevent starvation: asituation in which some computers are idle for a longtime. This algorithm has a circular queue of computers. The incoming loads will be distributed tothose computers sequentially and circularly. Althoughthe round-robin algorithm is efficient, but it may causesome computers to consume too much loads when thecluster consists of processors with different speed.Hence, we use an algorithm that can distribute theincoming load by distributing it to a computer that hasthe least load. We will describe our algorithm in moredetail in the next section.
3. Design and implementation
3.1. Risk analysis process
The process used in this work for the VaR calculation is as shown in Figure 1.
Figure 1. Scalable VaR calculation process
In the VaR calculation tool, users input the portfolioinformation: his portfolio detail, the holding period,and confidence level, through a user interface module.In this work, there are two user interface modules: Oneis a web application developed using ASP.NET, andthe other is an Excel worksheet that connects to VaR calculation system using web service. After thisinformation becomes available, the VaR calculationstarts. The algorithms used for VaR calculation is
Single-Factor Capital Asset Pricing Model (CAPM)
(cf. [11]). During the VaR calculation, the pasthistorical data from the Stock Exchange of Thailand(SET) such as daily SET index, closing prices areneeded. This data is available in a local database keptat ThaiBDC sites. The updated version of the data istransfer daily from SET to ThaiBDC.
3.2. System architecture
The architecture of our system is depicted in Figure
2
. The system consists of 3 components: a front-endnode, a compute node, and a client node.
Front-end node:
A front-end node performs manyfunctions. First, it acts as a security and access controlfor the cluster. Second, it acts as a web portal and webserver for web based applications that use the cluster.Finally, front-end node also acts as a load balancer for the VaR application. The load balancer is a servicethat balances the incoming requests to compute nodes.
Compute Node
Add a Comment
gopi09left a comment