added documentation for rbcs-servlet
All checks were successful
CI / build (push) Successful in 1m54s
All checks were successful
CI / build (push) Successful in 1m54s
switched Docker images to serial GC
This commit is contained in:
@@ -5,7 +5,7 @@ WORKDIR /home/luser
|
||||
|
||||
FROM base-release AS release
|
||||
ADD rbcs-cli-envelope-*.jar rbcs.jar
|
||||
ENTRYPOINT ["java", "-XX:+UseZGC", "-XX:+ZGenerational", "-jar", "/home/luser/rbcs.jar", "server"]
|
||||
ENTRYPOINT ["java", "-XX:+UseSerialGC", "-XX:GCTimeRatio=24", "-jar", "/home/luser/rbcs.jar", "server"]
|
||||
|
||||
FROM base-release AS release-memcache
|
||||
ADD --chown=luser:luser rbcs-cli-envelope-*.jar rbcs.jar
|
||||
@@ -13,4 +13,4 @@ RUN mkdir plugins
|
||||
WORKDIR /home/luser/plugins
|
||||
RUN --mount=type=bind,source=.,target=/build/distributions tar -xf /build/distributions/rbcs-server-memcache*.tar
|
||||
WORKDIR /home/luser
|
||||
ENTRYPOINT ["java", "-XX:+UseZGC", "-XX:+ZGenerational", "-jar", "/home/luser/rbcs.jar", "server"]
|
||||
ENTRYPOINT ["java", "-XX:+UseSerialGC", "-XX:GCTimeRatio=24", "-jar", "/home/luser/rbcs.jar", "server"]
|
||||
|
28
rbcs-servlet/README.md
Normal file
28
rbcs-servlet/README.md
Normal file
@@ -0,0 +1,28 @@
|
||||
## How to run
|
||||
|
||||
```bash
|
||||
gradlew dockerBuildImage
|
||||
```
|
||||
then in this directory run
|
||||
```bash
|
||||
docker run --rm -p 127.0.0.1:8080:8080 -m 1G --name tomcat -v $(pwd)/conf/server.xml:/usr/local/tomcat/conf/server.xml gitea.woggioni.net/woggioni/rbcs/servlet:latest
|
||||
```
|
||||
|
||||
you can call the servlet cache with this RBCS client profile
|
||||
```xml
|
||||
<profile name="servlet" base-url="http://127.0.0.1:8080/rbcs-servlet/cache/" max-connections="100" enable-compression="false">
|
||||
<no-auth/>
|
||||
<connection
|
||||
idle-timeout="PT5S"
|
||||
read-idle-timeout="PT10S"
|
||||
write-idle-timeout="PT10S"
|
||||
read-timeout="PT5S"
|
||||
write-timeout="PT5S"/>
|
||||
<retry-policy max-attempts="10" initial-delay="PT1S" exp="1.2"/>
|
||||
</profile>
|
||||
```
|
||||
|
||||
## Notes
|
||||
|
||||
The servlet implementation has an in memory cache whose maximum
|
||||
size is hardcoded to 0x8000000 bytes (around 134 MB)
|
Reference in New Issue
Block a user