Abstract
Este artigo introduz a leC (Infraestrutura Colaborativa): uma arquitetura para computação colaborativa peer-to-peer - P2P - implementada sobre XML, que é de fácil implantação por usuários não-especialistas e de simples utilização por desenvolvedores de aplicações para ambientes colaborativos. O uso de um mecanismo simples de escalonamento distribuído para o balanceamento de carga nos nós computacionais participantes é avaliado em termos da escalabilidade da arquitetura proposta e da qualidade do balanceamento. Tal foi obtido através de simulações usando-se como benchmark um problema do tipo RCPS - Resource Constrained Project Scheduling.
Introduction
In the early 2000s, Grid Computing represented the frontier of high-performance distributed systems, yet it remained largely inaccessible due to high configuration complexity and centralized control structures. Projects like SETI@home demonstrated the power of volunteer computing but often relied on central servers that created bottlenecks and single points of failure. The IeC (Infraestrutura Colaborativa) was proposed to bridge this gap, offering a "plug-and-play" P2P environment where idle CPU cycles could be shared across heterogeneous networks without expert intervention.
The IeC Architecture
The core of IeC is a decentralized peer-to-peer model where every participating node is functionally equivalent. Each machine runs an infrastructure layer that supports both task production and consumption, allowing for a flat, resilient network organization.
As shown in the architecture, each node contains a producer application (generating tasks) and a consumer application (processing tasks). The "Infra-estrutura" layer handles the routing of "Comunicados" (messages) between peers, abstracting the networking complexities from the developer and allowing applications to focus on the computational logic.
XML-Based Messaging and Interoperability
To ensure that the system can operate across different operating systems and programming languages, IeC utilizes XML for all internal communications. This choice facilitates interoperability and allows for a flexible data structure that can evolve with application needs.
The XML schema defines the structure of a "comunicado," which can bundle multiple requests (requisicao) and responses (resposta). Crucially, it includes a tamfila (queue size) field. By "piggybacking" this metadata onto every message, nodes maintain a near-real-time view of the network load without requiring dedicated status update packets, enabling efficient decentralized scheduling with minimal overhead.
Dynamic Load Balancing
IeC moves beyond static round-robin scheduling by implementing a dynamic strategy. Nodes monitor their local task queues and share this information via the XML messages. This allows the system to:
- Route tasks to idle nodes: New tasks are automatically sent to machines with the shortest queues.
- Adjust Granularity: The API provides a "dispersion level" metric based on queue size variance. Applications can use this to send larger task chunks when the network is balanced or smaller "grains" when the load is uneven, optimizing the trade-off between parallel efficiency and communication overhead.
Experimental Evaluation
The architecture was tested using a Resource-Constrained Project Scheduling (RCPS) benchmark on a network of 10 machines. The researchers compared a Dynamic Strategy (using queue-size feedback) against a Static Strategy (fixed task distribution).
- Performance: The Dynamic Strategy achieved a speedup of 8.92x on 10 nodes, significantly outperforming the Static Strategy's 4.68x.
- Efficiency: While the XML processing overhead increased the total serial time, the gains from keeping all machines busy throughout the execution far outweighed these costs. The dynamic approach effectively eliminated the "tail effect" where some machines sit idle while others finish the last complex tasks.
Conclusion and Future Work
The IeC architecture successfully demonstrates that a decentralized, XML-based P2P system can provide high scalability and ease of use for collaborative computing. However, current limitations include a reliance on static configuration files for node discovery. Future iterations aim to implement dynamic discovery protocols (like Gnutella’s PING/PONG) and address potential deadlock risks in complex hierarchical Master-Worker patterns.
This summary is based on the paper "Uma Arquitetura XML para Computação Colaborativa P2P".
Summary updated