-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
452 changed files
with
314,706 additions
and
2,407 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
# DLB Setup | ||
|
||
DLB is supported in certain SPR SKUs. Please make sure your CPU sku (QDF) supports DLB. | ||
|
||
And DLB is broken with latest BKC kernel `5.15.0-spr.bkc.pc.2.10.0.x86_64`. | ||
Before running the workload, please make sure your SPR has DLB device by running the following command: | ||
|
||
```shell | ||
lspci | grep 2710 | ||
``` | ||
|
||
If there are devices listed, then please download the DLB driver from this link: https://www.intel.com/content/www/us/en/download/686372/intel-dynamic-load-balancer.html | ||
|
||
Execute the following commands: | ||
|
||
```shell | ||
tar -xf dlb_linux_src_release_<dlb_driver_version>.txz | ||
cd dlb/driver/dlb2/ | ||
make | ||
sudo insmod dlb2.ko | ||
``` | ||
|
||
Then you can run the workload on this machine. |
65 changes: 65 additions & 0 deletions
65
doc/user-guide/preparing-infrastructure/setup-nginx-cache.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,65 @@ | ||
# Nginx Cache Server Setup | ||
|
||
This document is a guide for setting up Nginx-DLB benchmark environment, including Hardware platform and Software configuration on storage. | ||
|
||
## HW Prerequisites | ||
|
||
- Setup 3 servers: one node (client) for client deployment; 2 node for cache server (worker-0) and content server (worker-1) deployment. | ||
- Cache server (worker-0) requires 5 NVMe disks. | ||
|
||
## K8S Labels configuaration | ||
|
||
Please finish the section, [Storage configuration](setup-nginx-cache.md#storage-configuration), then label the corresponding nodes. | ||
|
||
Command examples: | ||
|
||
- Label: | ||
```shell | ||
kubectl label node <node name> HAS-SETUP-NVMECACHE=yes | ||
``` | ||
- Unlabel: | ||
```shell | ||
kubectl label node <node name> HAS-SETUP-NVMECACHE- | ||
``` | ||
|
||
Nginx cache server worker-0:* | ||
|
||
- `HAS-SETUP-NGINX-CACHE=yes` | ||
|
||
## Storage configuration | ||
|
||
This should be done on worker-0. | ||
|
||
- Prepare 5 nvme disk for nginx cache server pod. *nvme?* means multiple nvme disk. | ||
|
||
- Check NVMe drives and Partition drives | ||
```shell command | ||
ls /dev/nvme* | ||
``` | ||
|
||
```output | ||
/dev/nvme1 /dev/nvme2 /dev/nvme3 /dev/nvme4 /dev/nvme5 | ||
``` | ||
|
||
- Format drives as ext4 (or xfs): | ||
```shell command | ||
mkfs.ext4 /dev/nvme1n1 | ||
mkfs.ext4 /dev/nvme2n1 | ||
mkfs.ext4 /dev/nvme3n1 | ||
mkfs.ext4 /dev/nvme4n1 | ||
mkfs.ext4 /dev/nvme5n1 | ||
``` | ||
|
||
- Create cache mountpoints and mount to four pairs | ||
```shell command | ||
mkdir /nginx/cache1 | ||
mount -o rw,noatime,seclabel,discard /dev/nvme1n1 /nginx/cache1 | ||
mkdir /nginx/cache2 | ||
mount -o rw,noatime,seclabel,discard /dev/nvme2n1 /nginx/cache2 | ||
mkdir /nginx/cache3 | ||
mount -o rw,noatime,seclabel,discard /dev/nvme3n1 /nginx/cache3 | ||
mkdir /nginx/cache4 | ||
mount -o rw,noatime,seclabel,discard /dev/nvme4n1 /nginx/cache4 | ||
mkdir /nginx/cache5 | ||
mount -o rw,noatime,seclabel,discard /dev/nvme5n1 /nginx/cache5 | ||
``` |
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
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
Oops, something went wrong.