Scaling the ArchiGraph platform
The ArchiGraph platform can be scaled using several mechanisms:
- Scaling platform services with Kubernetes
- Scaling data warehouses managed by the platform
- Creation of several ArchiGraph clusters and organization of inter-cluster interaction
Let's look at each of these mechanisms.
1. Scaling platform services using Kubernetes
The components of the ArchiGraph platform that serve client requests are web services (REST, GraphQL, SPARQL) and processes that process requests received through RabbitMQ and Kafka queues. Scaling of such services is easy to organize using Kubernetes. Each service is a Docker container that can be launched in Kubernetes pods and scaled to the required number of replicas depending on the load. Processes processing Kafka queues can scale by reading messages from different partitions. All service instances work with the same repositories. This scaling allows you to manage the load on the services themselves. If increasing the resources allocated to services does not give the desired result, you need to move on to managing storage performance.
2. Scaling data warehouses managed by the platform
The ArchiGraph platform is a means of virtualizing data that can physically be stored in various sources: relational, columnar, document-oriented databases. At the platform level, the distribution of data objects between repositories is configured (binding of ontology classes to repositories). Thus, you can choose the most suitable type of storage for objects of each class: for time series - a relational DBMS, for a product catalog with many properties - a document-oriented DBMS, etc. Each of these storages in turn can be clustered. Thus, ArchiGraph provides transparent access to multiple data stores, each of which scales in its own natural way. This allows you to achieve storage of an almost unlimited amount of data under the control of the platform, flexibly manage the performance of data access through the construction of indexes, segmentation and the use of other built-in storage mechanisms.
3. Creation of several ArchiGraph clusters and organization of intercluster interaction
Another level of platform scaling is the creation of several ArchiGraph clusters. Clusters can be allocated on a territorial or organizational basis - for example, each cluster can serve a particular enterprise of the holding. Clusters can also be divided according to a functional principle - depending on what tasks the data stored in them is intended to solve. Interaction between clusters can be organized in two ways:
- Synchronization of some data between clusters. ArchiGraph instances in several clusters can subscribe to each other’s model and data changes. The subscription scheme depends on the functional tasks: you can completely replicate data between clusters, you can distribute the model from the central cluster to the peripheral ones, and part of the data - from the peripheral to the central one.
- On-demand access to data from one cluster from another. One of the ArchiGraph platform storage adapters is designed to connect to other platform instances. This allows each platform instance to indicate that objects of certain classes are located both in this instance’s own storage and in other platform instances. Each request to objects of this class will be routed to other instances of the platform, as a result the response may contain data from several instances.