-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
98 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
LoadModule watchdog_module modules/mod_watchdog.so | ||
|
||
LoadModule proxy_module modules/mod_proxy.so | ||
LoadModule proxy_http_module modules/mod_proxy_http.so | ||
LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so | ||
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so | ||
LoadModule proxy_hcheck_module modules/mod_proxy_hcheck.so | ||
LoadModule slotmem_shm_module modules/mod_slotmem_shm.so | ||
|
||
LoadModule manager_module modules/mod_manager.so | ||
LoadModule proxy_cluster_module modules/mod_proxy_cluster.so | ||
|
||
<IfModule !lbmethod_cluster_module> | ||
UseAlias On | ||
</IfModule> | ||
|
||
ProxyPreserveHost On | ||
|
||
<IfModule manager_module> | ||
Listen 6666 | ||
ServerName localhost | ||
ManagerBalancerName mycluster | ||
|
||
<IfModule !lbmethod_cluster_module> | ||
CreateBalancers 0 | ||
EnableOptions On | ||
</IfModule> | ||
|
||
EnableWsTunnel | ||
WSUpgradeHeader websocket | ||
<VirtualHost *:6666> | ||
EnableMCPMReceive | ||
<Directory /> | ||
Require ip 127.0.0. | ||
Require ip ::1 | ||
# This one is used in GH Actions | ||
Require ip 172.17. | ||
</Directory> | ||
<Location /mod_cluster_manager> | ||
SetHandler mod_cluster-manager | ||
Require ip 127.0.0. | ||
Require ip ::1 | ||
# This one is used in GH Actions | ||
Require ip 172.17. | ||
</Location> | ||
</VirtualHost> | ||
</IfModule> | ||
|
||
<IfModule lbmethod_cluster_module> | ||
LoadModule proxy_hcheck_module modules/mod_proxy_hcheck.so | ||
LoadModule watchdog_module modules/mod_watchdog.so | ||
<Proxy "balancer://mycluster"> | ||
ProxySet growth=10 | ||
ProxySet lbmethod=cluster | ||
</Proxy> | ||
</IfModule> | ||
|
||
# This is the default value, but let's go with the explicit here | ||
Maxnode 20 | ||
|
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,35 @@ | ||
#!/usr/bin/sh | ||
|
||
# Shell to test MODCLUSTER-794 | ||
|
||
pwd | grep MODCLUSTER-794 | ||
if [ $? ]; then | ||
PREFIX=MODCLUSTER-794 | ||
else | ||
PREFIX="." | ||
fi | ||
|
||
. includes/common.sh | ||
|
||
# first stop any previously running tests. | ||
tomcat_all_stop | ||
tomcat_all_remove | ||
httpd_all_clean | ||
|
||
MPC_NAME=MODCLUSTER-794 MPC_CONF=https://raw.githubusercontent.com/modcluster/mod_proxy_cluster/main/test/MODCLUSTER-794/mod_proxy_cluster.conf httpd_run | ||
|
||
for i in {1..20}; do | ||
tomcat_start $i | ||
done | ||
|
||
sleep 20 | ||
|
||
curl -m 10 localhost:6666 | ||
|
||
if [ $? -ne 0 ]; then | ||
echo "curl to server failed" | ||
tomcat_all_remove | ||
return 1 | ||
fi | ||
|
||
tomcat_all_remove |
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