Hi Austin, inline...
On 2016-05-27 05:29, Austin Kuo wrote:
Hi all,
I’m currently trying to report vertx instance to inventory, therefore I
am doing some experiments that is communicating to the server with REST
API. Wondering if there’s a way not to run an entire hawkular server
(because i’m working on my laptop) but the inventory component alone?
Yes, that's exactly what we do when running Inventory integration tests.
If you build Inventory with
maven clean install -Pitest
you can find a ready-to-run minimalistic Hawkular with just Inventory
and nothing else in
hawkular-inventory/hawkular-inventory-itest/target/hawkular-inventory-itest-*
directory.
The user "jdoe" with password "password" is there in the distro.
The distro uses the embedded Cassandra by default, that we tried to make
as resource-minimalistic as possible too.
If you still face the shortage of system resources with this distro (or
even when building it), you probably need to increase some of the ulimit
(linux/mac) settings. These are limits on my laptop:
[ppalaga@slama ~]$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 62872
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 62872
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
Good luck,
-- Peter