This repository has been archived by the owner on Nov 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAGECLOUD-3054: Implement Database Locks using Zookeeper and flock fo… (
#4409) * MAGECLOUD-3054: Implement Database Locks using Zookeeper and flock for Reliable HA Support - Added instructions for configuring the lock provider - Update Installation Guide TOC - Remove related topics list - Added symlink for 2.3 lock provider file - Removed manually-created links to command topics which are available in toc - Changed toc scope for lock provider topic to exclude v2.1
- Loading branch information
Showing
7 changed files
with
66 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
guides/v2.2/install-gde/install/cli/install-cli-subcommands-lock.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
group: installation-guide | ||
title: Configure the lock provider | ||
functional_areas: | ||
- Install | ||
- System | ||
- Setup | ||
--- | ||
|
||
## First steps {#instgde-cli-before} | ||
{% include install/first-steps-cli.md %} | ||
In addition to the command arguments discussed here, see [Common arguments]({{ page.baseurl }}/install-gde/install/cli/install-cli-subcommands.html#instgde-cli-subcommands-common). | ||
|
||
## Prerequisites {#instgde-cli-subcommands-store-prereq} | ||
|
||
Before you run this command, you must do all of the following *or* you must [install the Magento software]({{ page.baseurl }}/install-gde/install/cli/install-cli-install.html): | ||
|
||
* [Create or update the deployment configuration]({{ page.baseurl }}/install-gde/install/cli/install-cli-subcommands-deployment.html) | ||
* [Create the Magento database schema]({{ page.baseurl }}/install-gde/install/cli/install-cli-subcommands-db.html) | ||
|
||
{% include install/fully-secure.md %} | ||
|
||
## Configure the lock {#instgde-cli-lockconfig} | ||
|
||
Configure a lock provider to prevent the launch of duplicate cron jobs and cron groups. (Requires Magento 2.2.5 and later 2.2.x versions or version 2.3.2 and later.) | ||
|
||
Magento uses the database to save locks by default. If you have multiple nodes on your Magento Commerce servers, we recommend using Zookeeper as the lock provider. | ||
|
||
If you are running Magento Commerce on the cloud infrastructure, you do not need to configure lock provider settings. Magento configures the file lock provider for Magento Commerce Pro projects during the provisioning process. See [Cloud variables]({{ page.baseurl }}/cloud/env/variables-cloud.html). | ||
|
||
> Command usage | ||
```bash | ||
magento setup:store-config:set [--<parameter_name>=<value>, ...] | ||
``` | ||
|
||
> Parameter descriptions | ||
|Name|Value|Required?| | ||
|--- |--- |--- | | ||
|`--lock-provider`|Lock provider name: `db`, `zookeeper`, or `file`.<br><br>The default lock provider: `db`|No| | ||
|`--lock-db-prefix`|The specific db prefix to avoid lock conflicts when using the `db` lock provider.<br><br>The default value: `NULL`|No| | ||
|`--lock-zookeeper-host`|Host and port to connect to the Zookeeper cluster when you use the `zookeeper` lock provider.<br><br>For example: `127.0.0.1:2181`|Yes, if you set `--lock-provider=zookeeper`| | ||
|`--lock-zookeeper-path`|The path where Zookeeper saves locks.<br><br>The default path is: `/magento/locks`|No| | ||
|`--lock-file-path`|The path where file locks are saved.|Yes, if you set `--lock-provider=file`| | ||
{:style="table-layout:auto;"} |
1 change: 1 addition & 0 deletions
1
guides/v2.3/install-gde/install/cli/install-cli-subcommands-lock.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../v2.2/install-gde/install/cli/install-cli-subcommands-lock.md |