Integraion
The service mesh section in the DApp provides tools to manage and monitor decentralized, serverless services on the protocol. This includes an interactive dashboard showing server locations, service management options, fuse and rate limit rule settings for controlling request loads, and logging for tracking service activity.
1. Dashboard
The Dashboard provides a global view of servers in the network, displayed on an interactive map. This map shows the location and current status of each server, allowing users to understand the distribution and availability of resources.
Features:
Map Visualization: Displays each server's location and status (e.g., "Current" or "Reachable").
Current Site Information: Shows details about the selected site, including the site name, location, services hosted, and URL.
Site Details Table: Lists information for each site, providing an at-a-glance view of the available servers and their respective locations.
This dashboard enables users to monitor the network infrastructure and quickly identify where specific services are hosted.
2. Services
The Services tab lists all available serverless services. Users can search for a specific service by name and view details for each one.
Features:
Service Search: Allows users to filter and locate specific services by name.
Service Details: Each service entry provides relevant information to understand its functionality and availability.
This section is ideal for managing and locating specific serverless services within the protocol.
3. Fuse
The Fuse section provides a mechanism to set rules that protect services from overload or repeated errors. A fuse rule can be configured to activate under specific error conditions, temporarily blocking requests to a service until it recovers.
Creating a New Fuse Rule:
Click New Fuse Rule to open the configuration modal.
Fill in the following fields:
Service: The service name the fuse rule applies to.
Child Service: Specify any dependent services affected by this rule.
Rule Type: Select the fuse type (e.g., Consecutive Error Fuse).
Error Thresholds: Set error percentage and constant error thresholds.
Half-Open State Settings: Configure the number of requests allowed in the half-open state and the timeout for recovery.
Additional Settings: Specify clear cycle time, granularity, and whether to enable the rule.
This fuse mechanism helps ensure resilience by blocking excessive requests or errors and reducing strain on services.
4. Rate Limit
The Rate Limit section enables users to set limits on the number of requests that a service can handle within a specific time frame, protecting resources from overuse.
Creating a New Rate Limit Rule:
Click New Rate Limit Rule to open the rate limit configuration.
Define the following parameters:
Service: Name of the service to apply the rate limit to.
Max Count in Duration: Maximum requests allowed within a defined period.
Sample Duration: Duration (in seconds) to count requests.
Enable Rule: Toggle to activate or deactivate the rule.
This feature helps maintain fair resource allocation and prevents misuse of services.
5. Logs
The Logs section provides a history of service activity, including any errors, fuse activations, or rate limit events. This is useful for troubleshooting and tracking the performance and stability of services.
Features:
Service ID Filter: Users can filter logs based on specific service IDs.
Time Range Filter: Allows users to select the log time frame (e.g., last 5 minutes).
Detailed Log Entries: Each log entry displays the service name, message, and timestamp, providing context for the logged events.
The Logs section is essential for monitoring and maintaining the health of services within the serverless environment.
Example Use Cases:
Global Service Monitoring: The dashboard provides a real-time map of all server locations, helping users visualize where resources are deployed.
Error Handling and Recovery: Fuse and rate limit rules help protect services from excessive errors and prevent downtime by managing request load and error conditions.
Troubleshooting and Analysis: Logs give users detailed insights into service behavior, assisting in identifying issues and optimizing performance.
Depinify © Copyright 2024. All rights reserved.