Skip to content

Commit e6d8c76

Browse files
committed
Merge branch 'master' into update-redis-woocommerce
2 parents 14b4feb + e3251a8 commit e6d8c76

12 files changed

Lines changed: 375 additions & 64 deletions

docs/ecommerce-applications/magento-2/how-to-configure-redis-for-magento-2.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ After enabling the second Redis instance you need to change the configured Redis
134134
```console
135135
$ cd /data/web/magento2
136136
$ bin/magento setup:config:set \
137+
--session-save=redis \
137138
--session-save-redis-port=6378 \
138139
--session-save-redis-db=0
139140
```
@@ -149,15 +150,15 @@ Furthermore you need to add the following line to your crontab:
149150
To verify whether your configuration is working properly, first clear your session store:
150151

151152
```console
152-
$ rm /data/web/public/var/sessions/*
153+
$ rm /data/web/magento2/var/sessions/*
153154
```
154155

155156
Now open the site in your browser and hit `F5` a few times or log in to the admin panel. If all is well, no additional sessions files should be written to `/data/web/var/sessions`, but instead to the Redis database:
156157

157158
To verify whether your configuration is working properly, first clear your session store:
158159

159160
```console
160-
$ redis-cli -n 2 keys '*'
161+
$ redis-cli -p 6378 keys '*'
161162
```
162163

163164
## Troubleshooting

docs/getting-started/how-to-order/how-to-order-a-domain-presence-plan.md

Lines changed: 0 additions & 59 deletions
This file was deleted.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
______________________________________________________________________
2+
3+
myst:
4+
html_meta:
5+
description: 'Find out here how to order a domain.'
6+
redirect_from:
7+
8+
- /en/getting-started/how-to-order/how-to-order-a-domain-presence-plan/
9+
- /getting-started/how-to-order/how-to-order-a-domain-presence-plan.html
10+
11+
______________________________________________________________________
12+
13+
<!-- source: https://support.hypernode.com/en/getting-started/how-to-order/how-to-order-a-domain-presence-plan/ -->
14+
15+
# How to Order a Domain
16+
17+
To order a domain you will need a Hypernode as the domain needs to be linked to it during the ordering process.
18+
19+
## How to Order
20+
21+
To order a domain, please follow the steps below:
22+
23+
1. Log into the [Hypernode control panel](https://my.hypernode.com/domain/)
24+
1. Go to the 'Domains' tab and press Order domain
25+
1. Enter the domain name that you want to register with/transfer to Hypernode.
26+
1. When you want to transfer a domain, our ordering system will recognize you want to order an existing domain and will ask you if you want to transfer the domain or only manage the DNS. These steps will not initiate a transfer right away. If you want to transfer the domain to Hypernode you can choose the option 'Transfer to Hypernode'.
27+
1. Make a selection of the Hypernode it needs to link to.
28+
1. Select the Legal owner or fill in the information.
29+
1. After completing your order you can either transfer your domain with the authorisation token or manage the DNS after providing the domain registrar with the new nameservers.
30+
31+
## FAQ
32+
33+
**What extensions do you offer?**
34+
35+
A complete list of extensions we offer can be found [here](../../services/domain-procedures/which-tlds-does-hypernode-offer.md).
36+
37+
**How can I transfer my domain?**
38+
39+
You can read a detailed description of the step-by-step plan [here](../../services/domain-procedures/how-to-use-domains-in-the-control-panel.md#transfer-an-existing-domain-to-hypernode).
40+
41+
**How can I order an SSL certificate?**
42+
43+
You can read a detailed description of the step-by-step plan [here](../../hypernode-platform/ssl/how-to-use-ssl-certificates-on-your-hypernode-when-ordered-via-hypernode-com.md#buy-an-ssl-certificate-via-hypernode-recommended).

docs/hypernode-deploy/applications/config-for-magento-2.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,32 @@ return $configuration;
9797

9898
This automatically enables split static deployment for optimal build performance.
9999

100+
### High-Performance Static Content Deployment (Experimental)
101+
102+
```{warning}
103+
This feature is experimental and may cause unexpected issues. Test thoroughly in a staging environment before using in production.
104+
```
105+
106+
For Hyvä-based stores, you can enable a Go-based static content deployer that is **230-380x faster** than Magento's native `setup:static-content:deploy` command. Typical deployment times drop from ~115 seconds to ~0.3-0.5 seconds.
107+
108+
```php
109+
<?php
110+
111+
namespace Hypernode\DeployConfiguration;
112+
113+
$configuration = new ApplicationTemplate\Magento2(['nl_NL', 'en_US']);
114+
115+
$configuration->setMagentoThemes([
116+
'Vendor/theme' => 'nl_NL en_US',
117+
]);
118+
119+
$configuration->enableHighPerformanceStaticDeploy();
120+
121+
return $configuration;
122+
```
123+
124+
For more information, see the [Hypernode Deploy v4.8.0 changelog](https://changelog.hypernode.com/hypernode-deploy-v4-8-0/).
125+
100126
### Defining custom steps
101127

102128
You potentially need to add custom steps to the deployment, for example to build npm assets or do server actions after deployment.

docs/hypernode-deploy/pipelines/github-actions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
- run: hypernode-deploy build -vvv
6262
env:
6363
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
64+
DEPLOY_COMPOSER_AUTH: ${{ secrets.DEPLOY_COMPOSER_AUTH }}
6465
- name: archive production artifacts
6566
uses: actions/upload-artifact@v4
6667
with:

docs/hypernode-platform/nginx/how-to-configure-nginx-for-a-multistore.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ set $storecode "example_storecode";
3737
```
3838

3939
```{important}
40-
If you have a multistore, with hypernode-manage-vhost enabled AND you are using Varnish.
41-
You'd have to prefix the file with `varnish` instead of `server`, like `varnish.storecode`.
42-
This way these multistore requests will go through varnish and will then be rewritten accordingly with the `varnish.storecode` configuration.
40+
If you have a multistore with `hypernode-manage-vhost` enabled **and** you are using Varnish, you need to prefix the file with `varnish` instead of `server`, like `varnish.storecode`. This way multistore requests will go through Varnish and be rewritten accordingly using the `varnish.storecode` configuration.
41+
42+
This does **not** apply if your Hypernode is running behind a load balancer (e.g. a cluster setup). In that case, you should keep using `server.storecode` instead.
4343
```
4444

4545
### Use a different Store Type

docs/hypernode-platform/nginx/how-to-use-nginx.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,48 @@ rewrite ^/fr/(.*)$ http://yourshop.fr/$1 permanent;
128128
This will also maintain subfolders and query strings (such as <http://yourshop.com/fr/subfolder?arguments>).
129129

130130
If the move is only temporary, you should use redirect instead of permanent.
131+
132+
## Redirects using mapping
133+
134+
The map directive allows you to define conditional logic outside of your main server block. This keeps your configuration:
135+
136+
- Easier to read
137+
- More scalable for large numbers of redirects
138+
- More efficient than stacking multiple if statements
139+
140+
You will define your redirects in two parts:
141+
142+
1. A mapping configuration (placed in an `/data/web/nginx/http.*` file)
143+
1. A rewrite rule (placed in a `/data/web/nginx/server.*` file)
144+
145+
Step 1: Define the Redirect Mapping
146+
147+
`/data/web/nginx/http.*`
148+
149+
```nginx
150+
map $uri $out_redirect {
151+
~/the-location-you-want-to-redirect /new-location;
152+
}
153+
```
154+
155+
You can expand this map with multiple rules:
156+
157+
```nginx
158+
map $uri $out_redirect {
159+
~/old-page /new-page;
160+
~/blog/(.*) /articles/$1;
161+
~/deprecated /;
162+
}
163+
```
164+
165+
Step 2: Apply the Redirect in the Server Block
166+
167+
`/data/web/nginx/server.*`
168+
169+
```nginx
170+
if ($out_redirect) {
171+
rewrite 301 $out_redirect;
172+
}
173+
```
174+
175+
Using `map` for redirects in NGINX provides a clean, scalable, and efficient way to manage URL rewrites. By separating logic from execution, your configuration remains easy to maintain even as the number of redirects grows.

docs/hypernode-platform/redis.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
myst:
3+
html_meta:
4+
description: This table of contents gives you a summary of all Hypernode platform
5+
knowledge base articles that include information about redis.
6+
title: Redis | Hypernode platform
7+
---
8+
9+
# Redis
10+
11+
```{toctree}
12+
---
13+
caption: Table of Contents
14+
maxdepth: 1
15+
glob:
16+
---
17+
redis/*
18+
```
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
---
2+
myst:
3+
html_meta:
4+
description: Changing the Redis eviction policy on Hypernode with hypernode-systemctl.
5+
Learn which policies are available and how to verify the active Redis maxmemory-policy.
6+
title: Changing the Redis eviction policy on Hypernode
7+
---
8+
9+
# Changing the Redis eviction policy
10+
11+
You can change the Redis `maxmemory-policy` with `hypernode-systemctl settings redis_eviction_policy`. This policy determines which keys Redis can evict when memory is full.
12+
13+
## Available policies
14+
15+
The following values are supported for `redis_eviction_policy`:
16+
17+
- `noeviction`
18+
- `allkeys-lru`
19+
- `allkeys-lfu`
20+
- `allkeys-random`
21+
- `volatile-lru`
22+
- `volatile-lfu`
23+
- `volatile-ttl`
24+
- `volatile-random`
25+
26+
```{infomation}
27+
By default, Redis on Hypernode uses the `volatile-lru` eviction policy.
28+
```
29+
30+
## Check the current policy
31+
32+
To view the current Redis eviction policy:
33+
34+
```bash
35+
hypernode-systemctl settings redis_eviction_policy
36+
```
37+
38+
## Change the policy
39+
40+
Use the following command to change the Redis eviction policy:
41+
42+
```bash
43+
hypernode-systemctl settings redis_eviction_policy <policy>
44+
```
45+
46+
For example:
47+
48+
```bash
49+
hypernode-systemctl settings redis_eviction_policy allkeys-lru
50+
```
51+
52+
## Policy explanation
53+
54+
### `noeviction`
55+
56+
Redis will not evict any keys when memory is full. New write operations
57+
that require memory will fail.
58+
59+
### `allkeys-lru`
60+
61+
Redis can evict any key and removes the least recently used keys first.
62+
63+
### `allkeys-lfu`
64+
65+
Redis can evict any key and removes the least frequently used keys first.
66+
67+
### `allkeys-random`
68+
69+
Redis can evict any key and removes keys at random.
70+
71+
### `volatile-lru`
72+
73+
Redis only evicts keys with an expiration time and removes the least
74+
recently used keys first.
75+
76+
This is the default policy on Hypernode.
77+
78+
### `volatile-lfu`
79+
80+
Redis only evicts keys with an expiration time and removes the least
81+
frequently used keys first.
82+
83+
### `volatile-ttl`
84+
85+
Redis only evicts keys with an expiration time and prefers keys that will
86+
expire soonest.
87+
88+
### `volatile-random`
89+
90+
Redis only evicts keys with an expiration time and removes those keys at
91+
random.
92+
93+
## Important considerations
94+
95+
- Eviction only takes place when Redis reaches its memory limit.
96+
- Policies starting with `allkeys-` can evict any key, including keys without a TTL.
97+
- Even with an `allkeys-` policy, Redis can still run into memory pressure if keys cannot be evicted fast enough to keep up with writes.
98+
- Setting a TTL on cache keys is still recommended, even when using an `allkeys-` policy.
99+
- Policies starting with `volatile-` only apply to keys with a TTL.
100+
- If not enough keys have a TTL, Redis may not be able to evict enough data with a `volatile-` policy, and write operations may fail.
101+
- Changing the policy does not remove existing keys immediately.

docs/hypernode-platform/tools/how-to-flush-the-redis-cache.md renamed to docs/hypernode-platform/redis/how-to-flush-the-redis-cache.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ myst:
66
title: How to flush the Redic cache? | Hypernode
77
redirect_from:
88
- /en/hypernode/tools/how-to-flush-the-redis-cache/
9+
- /hypernode-platform/tools/how-to-flush-the-redis-cache/
910
---
1011

1112
<!-- source: https://support.hypernode.com/en/hypernode/tools/how-to-flush-the-redis-cache/ -->

0 commit comments

Comments
 (0)