You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: guides/v2.1/config-guide/mq/manage-mysql.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,17 +2,17 @@
2
2
layout: default
3
3
group: config-guide
4
4
subgroup: 15_RabbitMQ
5
-
title: Manage message queues with MySQL
6
-
menu_title: MySQL message queues
5
+
title: Manage message queues
6
+
menu_title: Manage message queues
7
7
menu_order: 3
8
-
version: 2.0
8
+
version: 2.1
9
9
github_link: config-guide/mq/manage-mysql.md
10
10
---
11
11
12
12
13
-
If you do not want to implement the RabbitMQ solution, you can manage message queues with cron jobs (or an external process manager)and the CLI to ensure that consumers are retrieving messages.
13
+
If you do not want to implement the RabbitMQ solution, you can manage message queues with cron jobs (or an external process manager)and the CLI to ensure that consumers are retrieving messages.
14
14
15
-
<h2>Process management</h2>
15
+
## Process management
16
16
17
17
Cron jobs are the default mechanism to restart consumers. Processes started by `cron` consume the specified number of messages, then die after that. Re-running `cron` restarts the consumer.
18
18
@@ -32,30 +32,30 @@ See <a href="{{page.baseurl}}config-guide/cli/config-cli-subcommands-cron.html">
32
32
33
33
You can also use a process manager such as <ahref="http://supervisord.org/index.html">Supervisor</a> to monitor the status of processes. The manager can use the CLI to restart the processes as needed.
34
34
35
-
<h2>Command line interface</h2>
35
+
## Command line interface
36
36
37
-
<h3>Start consumers</h3>
37
+
### Start consumers
38
38
39
-
The CLI can be used to start consumers of the messages from the queue. Multiple consumers can be started at a same time.
39
+
Use the `magento` command to start the message queue consumer.
`--max-messages=<value>` defines the maximum number of messages to consume per invocation. If number of messages are less then defined maximum number of messages, then the consumer will receive all the available messages in a queue.
47
+
`--max-messages=<value>` defines the maximum number of messages to consume per invocation. If the number of queued messages is less than the specified maximum number of messages, if there are fewer than the specified number of messages in the queue, the consumer will poll for new messages until it has processed that number of messages. The command can be launched again with cron within a configured period of time, or manually.
48
48
49
-
If `--max-messages` is not defined, the consumer continues to receive endless number of new messages
49
+
Unless the `max-messages`option is specified, the process runs continuously.
50
50
51
-
After getting all available messages, the CLI command terminates. The command can be launched again with cron within a configured period of time, or manually.
51
+
### List consumers
52
52
53
-
<h3>List consumers</h3>
54
53
Use the following command to return a list of message queue consumers:
Copy file name to clipboardExpand all lines: guides/v2.2/config-guide/mq/manage-mysql.md
+6-8Lines changed: 6 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,8 @@
2
2
layout: default
3
3
group: config-guide
4
4
subgroup: 15_RabbitMQ
5
-
title: Manage message queues with MySQL
6
-
menu_title: MySQL message queues
5
+
title: Manage message queues
6
+
menu_title: Manage message queues
7
7
menu_order: 3
8
8
version: 2.0
9
9
github_link: config-guide/mq/manage-mysql.md
@@ -44,15 +44,13 @@ where:
44
44
45
45
`<consumer_name>` is the consumer to start.
46
46
47
-
`--max-messages=<value>` defines the maximum number of messages to consume per invocation. If number of messages are less then defined maximum number of messages, then the consumer will receive all the available messages in a queue.
47
+
`--max-messages=<value>` defines the maximum number of messages to consume per invocation. If the number of queued messages is less than the specified maximum number of messages, if there are fewer than the specified number of messages in the queue, the consumer will poll for new messages until it has processed that number of messages. The command can be launched again with cron within a configured period of time, or manually.
48
48
49
-
If `--max-messages` is not defined, the consumer continues to receive endless number of new messages
49
+
If `--max-messages` is not specified, the process runs continuously.
50
50
51
-
After getting all available messages, the CLI command terminates. The command can be launched again with cron within a configured period of time, or manually.
51
+
`--batch-size=<value>` defines the number of messages to consume per batch. If specified, messages in a queue are consumed in batches of `<value>` each. This option is applicable for the batch consumer only.
52
52
53
-
“`--batch-size=<value>` defines the number of messages to consume per batch. If specified, messages in a queue are consumed in batches of `<value>` each. This option is applicable for the batch consumer only.
54
-
55
-
If `--batch-size` is not defined, the batch consumer receives all available messages in a queue.”
53
+
If `--batch-size` is not defined, the batch consumer receives all available messages in a queue.
56
54
57
55
<h3>List consumers</h3>
58
56
Use the following command to return a list of message queue consumers:
0 commit comments