Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ In production mode the ***local deployment*** is available at http://localhost:3

Use the `--detach` option to run containers in the background, recommended when deploy on servers.

#### Resources limits

Limits for max number of CPUs and RAM usage are set in `docker-compose.yml`.
Currently limits are set to 3 CPUs and 8GB RAM.

Java 11 processes are per default allowed to use up to 25% of the availbale RAM if Xmx is not set.
This means that the playground process can use up to 2GB java heap space.

### View output (logs) from Docker container

```bash
Expand Down
7 changes: 5 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@ services:
volumes:
- '/etc/timezone:/etc/timezone:ro' # Sync with host
- '/etc/localtime:/etc/localtime:ro' # Sync with host
mem_limit: 8192m
cpus: 0.5
deploy:
resources:
limits:
cpus: '3.0' # number of cores
memory: 8GB
2 changes: 1 addition & 1 deletion resources/examples/Flux_Commands/lines-to-records
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://metafacture.org/playground/?flux=%22https%3A//raw.githubusercontent.com/metafacture/metafacture-core/master/metafacture-runner/src/main/dist/examples/morph/pica-to-marcxml/nonNormalized.pica%22%0A%7C+open-http%0A%7C+as-lines%0A%7C+lines-to-records%0A%7C+decode-pica%28normalizedSerialization%3D%22false%22%2C+ignoreMissingIdn%3D%22true%22%29%0A%7C+encode-pica%0A%7C+print%0A%3B
https://metafacture.org/playground/?flux=%22https%3A//raw.githubusercontent.com/metafacture/metafacture-core/master/metafacture-runner/src/main/dist/examples/transform/pica-to-marcxml/nonNormalized.pica%22%0A%7C+open-http%0A%7C+as-lines%0A%7C+lines-to-records%0A%7C+decode-pica%28normalizedSerialization%3D%22false%22%2C+ignoreMissingIdn%3D%22true%22%29%0A%7C+encode-pica%0A%7C+print%0A%3B
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://metafacture.org/playground/?flux=%22https%3A//raw.githubusercontent.com/metafacture/metafacture-core/master/metafacture-runner/src/main/dist/examples/morph/pica-to-marcxml/nonNormalized.pica%22%0A%7C+open-http%0A%7C+as-lines%0A%7C+lines-to-records%0A%7C+decode-pica%28normalizedSerialization%3D%22false%22%2C+ignoreMissingIdn%3D%22true%22%29%0A%7C+morph%28transformationFile%29%0A%7C+encode-marc21%0A%7C+decode-marc21%28emitLeaderAsWhole%3D%22true%22%2C+ignoreMissingId%3D%22true%22%29%0A%7C+encode-marcxml%0A%7C+print%0A%3B&transformation=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%0A%3Cmetamorph+xmlns%3D%22http%3A//www.culturegraph.org/metamorph%22+xmlns%3Axsi%3D%22http%3A//www.w3.org/2001/XMLSchema-instance%22+version%3D%221%22%3E%0A++++%3Crules%3E%0A++++++++%3Centity+name%3D%22leader%22+flushWith%3D%22record%22%3E%0A++++++++++++%3Cchoose%3E%0A++++++++++++++++%3Cdata+source%3D%22003.@%22+name%3D%22characterCodingScheme%22%3E%0A++++++++++++++++++++%3Cconstant+value%3D%22a%22/%3E%0A++++++++++++++++%3C/data%3E%0A++++++++++++++++%3Cdata+source%3D%22%3F%3F%3F%3F%22+name%3D%22characterCodingScheme%22%3E%0A++++++++++++++++++++%3Cconstant+value%3D%22a%22/%3E%0A++++++++++++++++%3C/data%3E%0A++++++++++++%3C/choose%3E%0A++++++++%3C/entity%3E%0A++++++++%3Cdata+name%3D%22001%22+source%3D%22003@.0%22/%3E%0A++++++++%3Centity+name%3D%22650+0%22+reset%3D%22true%22%3E%0A++++++++++++%3Cdata+source%3D%22044N.a%22+name%3D%22a%22/%3E%0A++++++++%3C/entity%3E%0A++++%3C/rules%3E%0A%3C/metamorph%3E
https://metafacture.org/playground/?flux=%22https%3A//raw.githubusercontent.com/metafacture/metafacture-core/master/metafacture-runner/src/main/dist/examples/transform/pica-to-marcxml/nonNormalized.pica%22%0A%7C+open-http%0A%7C+as-lines%0A%7C+lines-to-records%0A%7C+decode-pica%28normalizedSerialization%3D%22false%22%2C+ignoreMissingIdn%3D%22true%22%29%0A%7C+morph%28transformationFile%29%0A%7C+encode-marc21%0A%7C+decode-marc21%28emitLeaderAsWhole%3D%22true%22%2C+ignoreMissingId%3D%22true%22%29%0A%7C+encode-marcxml%0A%7C+print%0A%3B&transformation=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%0A%3Cmetamorph+xmlns%3D%22http%3A//www.culturegraph.org/metamorph%22+xmlns%3Axsi%3D%22http%3A//www.w3.org/2001/XMLSchema-instance%22+version%3D%221%22%3E%0A++++%3Crules%3E%0A++++++++%3Centity+name%3D%22leader%22+flushWith%3D%22record%22%3E%0A++++++++++++%3Cchoose%3E%0A++++++++++++++++%3Cdata+source%3D%22003.@%22+name%3D%22characterCodingScheme%22%3E%0A++++++++++++++++++++%3Cconstant+value%3D%22a%22/%3E%0A++++++++++++++++%3C/data%3E%0A++++++++++++++++%3Cdata+source%3D%22%3F%3F%3F%3F%22+name%3D%22characterCodingScheme%22%3E%0A++++++++++++++++++++%3Cconstant+value%3D%22a%22/%3E%0A++++++++++++++++%3C/data%3E%0A++++++++++++%3C/choose%3E%0A++++++++%3C/entity%3E%0A++++++++%3Cdata+name%3D%22001%22+source%3D%22003@.0%22/%3E%0A++++++++%3Centity+name%3D%22650+0%22+reset%3D%22true%22%3E%0A++++++++++++%3Cdata+source%3D%22044N.a%22+name%3D%22a%22/%3E%0A++++++++%3C/entity%3E%0A++++%3C/rules%3E%0A%3C/metamorph%3E