commit | da5e8360e58371334635dd9329793c135fea0392 | [log] [tgz] |
---|---|---|
author | Alex Heneveld <alex@cloudsoft.io> | Sun Jun 18 01:45:07 2023 +0100 |
committer | Alex Heneveld <alex@cloudsoft.io> | Sun Jun 18 02:28:09 2023 +0100 |
tree | 16d576dc1df5297963fa368fe5312c42409012d3 | |
parent | 15374e4f5b551e0ca95f4f52e3d472a745480b6f [diff] |
use weak map to access more tasks in memory sometimes tasks are brooklyn GC'd, ie removed from the map, but still referenced elsewhere, giving a lot more "task GC'd" messages than necessary. by using weak refs, if there are still child references, a direct request will find the task even if brooklyn has determined it can be GC'd
This repo contains the core elements to run a Brooklyn server, from the API and utils through to the core implementation and the REST server.
Two methods are available to build this project: within a docker container or directly with maven.
The project comes with a Dockerfile
that contains everything you need to build this project. First, build the docker image:
docker build -t brooklyn:server .
Then run the build:
docker run -i --rm --name brooklyn-server -v ${HOME}/.m2:/root/.m2 -v ${PWD}:/usr/build -w /usr/build brooklyn:server mvn clean install
Simply run:
mvn clean install