PageBox |
|
|
|
|
|
Deployment | Token API | Active naming | Trusted |
PageBox for Java deployment with relaysForewordWe presented the deployment with relays first in the Grid API V2 document. The implementation described here uses the SOAP protocol and handles aspects such as security and error management. ObjectiveThis document presents the deployment with relays implemented in PageBox for Java. ApplicationThe deployment with relays aims to reduce the deployment duration on large PageBox constellations. This deployment model can also be used with other point-to-point protocols (TCP for instance.) The deployment with relays is useful:
Using a point-to-point protocol. We only needed to implement the first case in PageBox. CreditsThough our design and goal are different we were deeply influenced by the Message Passing Interface (MPI) collective operations and MPI implementations like MPICH that we present on our Grid page. PrincipleThe deployment with relays involves three entities:
When it deploys an archive the Repository piggybacks a list of PageBoxes where to deploy the archive. The Relay PageBox deploys the archive on these PageBoxes and then notifies the deployment status to the Repository. RepositoryThe relay deployment is a recursive function. At each call the relay function processes an array of PageBoxes. The array contains initially all PageBoxes to deploy.
Relay PageBoxA PageBox becomes a relay PageBox when it receives a deployment request with a piggybacked list of PageBoxes. The relay Pagebox handles the deployment request normally and:
The relay PageBox also forwards the PageBox piggybacked list to a Relay thread:
Error handlingErrors that require a special handling are errors occurring in relay PageBoxes. Deployment errorA deployment can fail for two reasons:
In the latter case, the relay retries the deployment with the next PageBox in the array and so on. If the deployment fails at invocation for all PageBoxes in the array the relay tries to deploy on the piggybacked list PageBoxes. Notification errorThe Repository sets the PageBoxes in piggybacked lists to a "maybe" status. When it receives notifications from relay PageBoxes the Repository updates the status of these PageBoxes to their status in the notification message. A relay PageBox can fail between the handling of the deployment request and the Repository notification. After a parameterized delay the Repository retries the deployment on the PageBoxes in "maybe" status. ExampleIn this example the Repository must deploy an archive on seven PageBoxes.
At time t the Repository sends a Deployment request to Relay Pagebox1 with three piggybacked PageBox URLs (PageBox3, PageBox4 and PageBox6.)
At time t + 1
The two deployments occur in parallel using independent machines and links.
At time t + 2,
The four deployments occur in parallel using independent machines and links. CommentsThe deployment with relays is a holistic approach: we try to minimize the deployment time with the simplest algorithm and a simple query/reply protocol. It is often possible to reduce further the deployment time by issuing many requests in parallel from the same machine. We didn’t implement parallel requests in PageBox because sequential requests are not a real drawback for a deployment facility. PageBox must be fast enough but not overuse server resources and sending requests one after the other is an effective throttling. The deployment with relays is not very bandwidth sensitive. However the total deployment duration can be reduced if the Repository and the first Relay PageBoxes have fast links. To identify fast links there are two solutions:
Because the Repository randomly selects the Relay PageBoxes, resource usage should be evenly balanced between PageBoxes, which is a requirement when PageBoxes are operated by different organizations.
Contact:support@pagebox.net |
|