Category: Management And Monitoring

进入容器一,执行命令行。确定此容器在接收请求与运行队列作业。 0

yii2 queue extension, in the Redis driver, when the info command prints information about the queue status, the analysis of the queue status of the reserved state (2)

Post Views: 12 1. Reference URL:https://www.shuijingwanwq.com/2020/09/30/4552/, this is a previous blog. 2. When the cluster is deployed, the overall 4 groups of queues are all executed. It can be controlled within half an hour....

重新升级后,reserved 状态的队列数量快速变化为 0 ,查看标准输出日志文件,stdout_logfile = /data/logs/yii-copy-asset-queue-worker-stdout.log。attempt 的值分别等于 140、136。 0

Yii2 queue extension, in the Redis driver, when the info command prints information about the queue status, the analysis of the queued state queue

Post Views: 15 1. Yii2 queue extension, in the Redis driver, when the info command prints information about the queue status, the queue of the reserved state has always existed. Check the system log,...

模拟出 8 条任务。事务ID为 57、58、59、63、64、65、68、69 的同步时间(分钟)分别为:11、12、13、12、11、12、11、12 。事务ID为 57、58、59、63、64、65、68、69 的同步次数分别为:21、22、22、19、17、5、17、17 。事务ID为 57、58、59、63、64、65、68、69 的同步频率分别为:11 * 60 / 21 = 31、12 * 60 / 22 = 33、13 * 60 / 22 = 35、12 * 60 / 19 = 38、11 * 60 / 17 = 39、12 * 60 / 5 = 144、11 * 60 / 17 = 39、12 * 60 / 17 = 42。得出平均值:(31 + 33 + 35 + 38 + 39 + 144 + 39 + 42) / 8 = 50。理论上的计算公式,进一法取整(事务数量 / 5) / 容器数量 * 60。符合预期 0

Deploy and test clusters in Rancher

Post Views: 17 1. In Rancher, clone the existing Docker container channel-pub-api-prev is channel-pub-api-prev-1, channel-pub-api-prev-2, as shown in Figure 1 2. The final 3 containers form a cluster, as shown in Figure 2 3....

查看写入的文本文件,以检测命令行运行的间隔时间,符合预期 0

Docker deployment, the implementation of Supervisor-based crontab (bash sleep) to reduce memory footprint

Post Views: 15 1. The operation of the command-line script is supported based on Supervisor. During the continuous operation, the problem of occupying too much memory is still not fundamentally solved. Check the URL:https://www.shuijingwanwq.com/2019/07/24/3376/...

在 第 10 步骤执行完毕后,Docker 容器的 CPU:9.9%,内存:541MB,内存增加了 160MB 左右,每 1000 条数据的添加,内存会增加 20 MB 左右。因此,优化的重点在于第 2 个命令行脚本。 0

The command-line script implemented based on Yii 2.0, during the continuous operation, the analysis and solution of excessive memory occupancy

Post Views: 18 1. When the amount of data in MySQL and Redis is small, the CPU of the Docker container: 0.02%, and the memory: 298MB, as shown in Figure 1 and Figure 2...

Run the console command script based on Supervisor, after running 1 time, run the implementation of the console command script again after 60 seconds 0

Run the console command script based on Supervisor, after running 1 time, run the implementation of the console command script again after 60 seconds

Post Views: 10 1. Configuration file \channel-pub-api\build\c_files\etc\supervisord.d\yii-qq-transaction-video-sync.ini 2. In the console command script, run once, write 1 file, the code is as follows 3. After the development environment is upgraded, check the directory /sobey/www/channel-pub-api/console/runtime/...

0

Implement asynchronous execution of tasks based on Yii2 queue extension in Yii2 advanced template

Post Views: 12 1. Install the Yii2 queue extension and execute the following commands 2. Check composer.json, the installation has been successful 3. Register multiple queue components to the console, edit \console\config\main.php 4. Configuration...