Skip to content

Commit e6ade5c

Browse files
committed
more sql connections & use dir for mw cache
1 parent 17be700 commit e6ade5c

File tree

6 files changed

+12
-5
lines changed

6 files changed

+12
-5
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
# - default
3030
- lightweight
3131
# - lightweight-wbNoSharedCache
32-
# - lightweight-mwCacheDirectory
32+
- lightweight-mwCacheDirectory
3333
# - mwCacheDirectory
3434
# - mwNoJobs
3535
# - wbNoChangesTable

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ Steps:
1616
You can also try running them locally... For example...
1717

1818
```sh
19-
PROFILE_IMAGE=wikibase/wikibase:1.35-base PROFILE_SETTINGS=lightweight PROFILE_SQL=mariadb:10.5 docker-compose up -d
19+
PROFILE_IMAGE=wikibase/wikibase:1.35-base PROFILE_SETTINGS=lightweight-mwCacheDirectory PROFILE_SQL=mariadb:10.5 docker-compose up -d mysql wikibase1
2020
./docker-compose-wait1.sh
21+
PROFILE_IMAGE=wikibase/wikibase:1.35-base PROFILE_SETTINGS=lightweight-mwCacheDirectory PROFILE_SQL=mariadb:10.5 docker-compose up -d wikibase2
2122
./docker-compose-wait2.sh
22-
sleep 3
23-
ASYNC=40 INSTANCES=2 ./loads/2000EmptyItems.sh
23+
sleep 5
24+
ASYNC=150 INSTANCES=2 ./loads/2000EmptyItems.sh
2425
```

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ services:
77
volumes:
88
- ./:/code-repo
99
- ./settings/${PROFILE_SETTINGS}.sh:/code-settings.sh
10+
- ./apache.extra.conf:/etc/apache2/conf-available/wb-profile.extra.conf
1011
links:
1112
- mysql
1213
ports:
@@ -19,6 +20,7 @@ services:
1920
volumes:
2021
- ./:/code-repo
2122
- ./settings/${PROFILE_SETTINGS}.sh:/code-settings.sh
23+
- ./apache.extra.conf:/etc/apache2/conf-available/wb-profile.extra.conf
2224
links:
2325
- mysql
2426
ports:

my.extra.cnf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[mysqld]
2-
max_connections=500
2+
max_connections=1000

settings/lightweight-mwCacheDirectory.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ echo "\$wgWBRepoSettings['idGeneratorSeparateDbConnection'] = true;" >> LocalSet
2323
## to make your wiki go slightly faster. The directory should not
2424
## be publicly accessible from the web.
2525
echo "\$wgCacheDirectory = \"\$IP/cache\";" >> LocalSettings.php
26+
mkdir cache
27+
chmod -R 775 cache

settings/mwCacheDirectory.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
## to make your wiki go slightly faster. The directory should not
33
## be publicly accessible from the web.
44
echo "\$wgCacheDirectory = \"\$IP/cache\";" >> LocalSettings.php
5+
mkdir cache
6+
chmod -R 775 cache

0 commit comments

Comments
 (0)