Commit Graph

77 Commits

Author SHA1 Message Date
vvzvlad
34776214d6 Downgrade Docker image version in docker-compose.yaml from 1.4.0 to 1.2.0 to revert to a previous stable release. 2025-01-19 12:08:08 +03:00
vvzvlad
0cc12c5446 Update Docker image version in docker-compose.yaml from 1.2.0 to 1.4.0 for improved functionality and performance. 2025-01-19 12:00:20 +03:00
vvzvlad
57c8b81c13 Add format_number function to checker.py for improved subscription ID formatting
This update introduces a new `format_number` function that formats subscription IDs into a more readable format (e.g., converting 1000 to '1k'). The `check_logs` function has been modified to utilize this new formatting for both head subscription ID and last subscription ID in the status messages, enhancing clarity in log analysis and improving the overall readability of subscription status reporting.
2025-01-19 11:56:00 +03:00
vvzvlad
382a910856 Enhance check_logs function in checker.py to capture and log head subscription ID. Added logic to extract "head sub id" from logs and return it in the status message, improving clarity in subscription state reporting. This update complements existing functionality for tracking last subscription ID, ensuring comprehensive log analysis. 2025-01-19 11:54:47 +03:00
vvzvlad
a0d2e74115 Update check_logs function in checker.py to modify subscription status reporting. Changed the return message from "Subscription" to "Sync" for improved clarity in log analysis. This adjustment enhances the understanding of the subscription state in the context of log processing. 2025-01-19 11:51:00 +03:00
vvzvlad
c1f23386b5 Refactor check_logs function in checker.py to improve logging and subscription status reporting. Renamed parameter from log_handler to logger for clarity. Added logging for cases where no subscription is found, enhancing the visibility of log analysis outcomes. 2025-01-19 11:42:55 +03:00
vvzvlad
e5a0eef020 Enhance check_logs function in checker.py to capture last subscription ID from logs. Added logic to identify and return the most recent subscription ID when "Ignored subscription creation" messages are detected. This improves the clarity of log analysis by providing specific subscription status, while maintaining the existing error handling for Docker log retrieval. 2025-01-19 11:42:14 +03:00
vvzvlad
c95fce1b69 Add clean_ansi function to checker.py for log processing
This update introduces a new `clean_ansi` function to remove ANSI escape sequences from log output, enhancing readability. The `check_logs` function has been modified to utilize this new function, ensuring that the logs retrieved from Docker are plain text, which improves clarity for subsequent log analysis.
2025-01-19 11:40:43 +03:00
vvzvlad
cd119be631 Update check_logs function in checker.py to suppress color output in docker logs retrieval. This change enhances log readability by ensuring that the output is plain text, improving clarity for subsequent log analysis. 2025-01-19 11:38:25 +03:00
vvzvlad
a5a27829de Refactor check_logs function in checker.py to simplify log handling. Removed subscription message detection logic and replaced it with a basic line printing mechanism. The function now returns a default status of "Idle", streamlining the process and reducing complexity in log analysis. 2025-01-19 11:37:27 +03:00
vvzvlad
246e073092 Update subscription pattern in check_logs function of checker.py to improve error message handling. Enhanced regex to capture error types more accurately, ensuring whitespace is stripped from error messages. This change refines log analysis and improves clarity in health check reporting. 2025-01-19 11:34:57 +03:00
vvzvlad
43dbcd0a17 Refactor check_logs function in checker.py to enhance subscription message handling. Updated regex to capture error types alongside subscription IDs, improving log analysis. Added logging for cases with no matches and refined status messages based on error type, enhancing clarity in health check reporting. 2025-01-19 11:34:16 +03:00
vvzvlad
c062ad8e66 Enhance package management in checker.py by implementing version control for required packages. Added warnings filter to suppress warning messages. The script now checks for specific package versions and installs them accordingly, improving dependency management and ensuring compatibility. This change enhances the robustness of the environment setup for the checker process. 2025-01-19 11:32:51 +03:00
vvzvlad
da56ef57f0 Comment out random sleep functionality in checker.py to simplify execution flow. This change removes unnecessary delays, enhancing the responsiveness of the checker process while maintaining existing logging and error handling mechanisms. 2025-01-19 11:31:51 +03:00
vvzvlad
b89e6c20ce Refactor self_update function in checker.py to accept a logger parameter for improved logging. This change enhances the update process by providing consistent logging messages for update checks, successes, and errors, thereby improving the clarity and maintainability of the script's update functionality. 2025-01-19 11:29:48 +03:00
vvzvlad
b93e5f890a Refactor check_logs function in checker.py to improve subscription message detection. Changed from single match to iterating over all matches, allowing retrieval of the last subscription ID found in logs. Updated logging to reflect the last subscription message or indicate absence, enhancing clarity in log analysis. 2025-01-19 11:11:38 +03:00
vvzvlad
625a8f71ae Update subscription pattern in check_logs function of checker.py to include a wildcard for error messages. This change enhances the regex matching for subscription completion, improving the accuracy of log analysis in health checks. 2025-01-19 09:54:48 +03:00
vvzvlad
8acb4768e3 Reduce random sleep duration in checker.py from 10 minutes to 1 minute to improve responsiveness of the checker process. This change enhances the overall efficiency of the health check execution. 2025-01-19 09:48:54 +03:00
vvzvlad
b9d966ff90 Update check_logs function in checker.py to retrieve logs from the 'infernet-node' container instead of using 'docker compose'. This change improves log retrieval efficiency by reducing the time window from 2 hours to 10 minutes, while also updating error handling to reflect the new command. Enhances clarity in log management for health checks. 2025-01-19 09:45:18 +03:00
vvzvlad
1e38b5aca6 Refactor check_logs function in checker.py to focus on subscription completion detection. Removed dynamic error and proof speed logging, simplifying the health check process. Now returns a status based on subscription completion, enhancing clarity and maintainability of the health check logic. 2025-01-19 09:44:17 +03:00
vvzvlad
3abc4e0a81 Update playbook.yml to add journalctl command for node-checker service and comment out grpcbalancer service installation steps. This change enhances logging capabilities while simplifying the playbook by removing unnecessary service setup commands. 2025-01-19 09:26:27 +03:00
vvzvlad
49c13d9e42 Enhance health check in checker.py by adding a print statement for the fixed message "test ok". This improves visibility of the health status during execution while maintaining the existing error handling structure. 2025-01-18 17:57:29 +03:00
vvzvlad
4e50ee554b Comment out dynamic log data retrieval in checker.py, maintaining a fixed health status callback message "test ok". This change simplifies the health check process while preserving error handling functionality. 2025-01-18 15:03:02 +03:00
vvzvlad
f5706ac887 Update health status callback in checker.py to return a fixed message "test ok" instead of dynamic log data 2025-01-18 14:52:59 +03:00
vvzvlad
da787935df Add node-checker service 2025-01-18 13:59:41 +03:00
vvzvlad
77a5f1a071 Refactor upload_stats_to_grist function in grpc-balancer.py to consolidate server statistics into a single dictionary, improving clarity and maintainability. Update error logging to include exception details. 2025-01-17 07:20:54 +03:00
vvzvlad
8425114abf Refactor update_contracts.sh to remove unnecessary directory change and streamline contract address handling 2025-01-16 09:16:28 +03:00
vvzvlad
92f6cdcd40 Update playbook.yml to remove unnecessary '--no-dependencies' argument from grpcbalancer installation command 2025-01-16 09:05:42 +03:00
vvzvlad
f2cce2f592 Refactor grpcbalancer installation in playbook.yml to use shell commands for copying and setting permissions; update service file path in grpc-balancer.service; remove deprecated grpcbalancer.py file. 2025-01-16 08:51:07 +03:00
vvzvlad
5d8a2cfdd6 Refactor update.sh to simplify usage by removing wallet address, private key, and RPC URL parameters; streamline script for improved clarity and maintainability. 2025-01-16 08:32:17 +03:00
vvzvlad
4c0268823b Add execute permission to update.sh in playbook.yml 2025-01-16 08:26:06 +03:00
vvzvlad
bbd1de0020 Fix variable name in update script call in playbook.yml 2025-01-16 07:56:19 +03:00
vvzvlad
3a2847295a Refactor playbook to use 'node' directory instead of 'ritual'; add grpcbalancer installation steps 2025-01-16 07:48:51 +03:00
vvzvlad
671c7a4507 update v9 2025-01-16 07:31:53 +03:00
vvzvlad
e0913ece08 edit retries/delay 2024-09-28 03:34:11 +03:00
vvzvlad
1a775c6b87 add bashrc 2024-09-28 03:30:42 +03:00
vvzvlad
26323e9c41 revert to 1.2.0 2024-09-26 02:36:31 +03:00
vvzvlad
a79bdc94d0 bump ver 2024-09-25 17:52:04 +03:00
vvzvlad
272ee7522b add cmd in bash history 2024-09-24 14:54:38 +03:00
vvzvlad
e85f0b987e remove unless stopped 2024-09-23 02:42:05 +03:00
vvzvlad
7eab098a99 add logs setting 2024-09-23 02:39:45 +03:00
vvzvlad
c0502193b2 remove unused 2024-09-22 00:50:19 +03:00
vvzvlad
9be7df6bcf add sh files 2024-09-21 23:51:36 +03:00
vvzvlad
8183934d09 add commands to bashhistory 2024-09-21 20:05:18 +03:00
vvzvlad
1558f60810 change settings 2024-09-21 20:05:07 +03:00
vvzvlad
138fcfc321 add bash history 2024-09-21 19:25:29 +03:00
vvzvlad
153ccfd4db fix Install Forge and Infernet SDK 2024-09-18 01:25:24 +03:00
vvzvlad
eaceb3ecfa many fixes 2024-09-18 01:18:25 +03:00
vvzvlad
c0fd0330af fix bug 2024-09-18 01:12:07 +03:00
vvzvlad
fc49f06d75 big update 2024-09-18 01:06:32 +03:00