Glassfish 3.1.2 - Difference Between default-config and server-config - configuration

What is the difference between default-config and server-config? If I want to adjust a thread pool size for example, do I need to do it in both places? If just one, which one?

It appears that the default-config is used by Glassfish as a template to create other configs, so anything you actually want to configure on a server should go in the server-config.
Also see Glassfish 3 has two configurations

Related

Openwhisk multitenancy on Openshift

I'm trying to install Openwhisk onto Openshift. I've followed the official guide and it worked.
Now the point is that my environment would be a multitenant ecosystem, so let's pretend having two different users (Ux and Uy) who want to run their containers on my openwhisk environment.
I'd like to have the following projects in my openshift:
Core project, that hosts the Openwhisk's Ingress, Controller, Kafka and CouchDB components (maybe also the Invokers?)
UxPRJ project, that hosts only the containers running actions created by Ux (maybe also the Invokers?)
UyPRJ project, that hosts only the containers running actions created by Uy (maybe also the Invokers?)
The following images better explain what I've in mind:
or also:
Is this possible configuration possible?
Looking around, I wasn't able to find anything like that...
Thank you.
The OpenWhisk loadbalancer which assigns functions to invokers does not segregate users in the way you want, but it is possible to do what you want if you modify the loadbalancer. The way it works now is that there is a list of available invokers which form the allowed set of invokers for a function assignment. You could at that point take into consideration a partitioning based on the user and form the allowed set of invokers differently. There are other ways to realize the partitioning you want as well, but all require modification to the OpenWhisk control plane.

Eclipse MAT thread attributes

I have Liferay 6.1.2 CE application deployed to Jboss EAP 6.4
I am trying to analyze heap dump using Eclipse MAT after server crashed by OOM.
In dominator tree I see couple of threads that occupying a lot of memory.
My question what do parkBlocker and other Treads Attributes mean ?
'parkBlocker' is a field name of java.lang.Thread. Attribute here means field name.
The actual use of a field depends on the code, but my guess is that is the object used to block on when a thread is parked(). See the park*() methods on java.lang.Thread.

Does Qpid Broker 7 support ${variable} substitution in its config file?

I am upgrading from version 6 to version 7, which means switching from from instantiating a Broker to using the SystemLauncher.
In particular, I had specified the keystore with a variable, and am now providing that via the systemConfigAttributes to start. But it reports that it can't find they keystore, and names my ${variable} as the keystore, rather than the value I provided.
I've also tried using one of the standard variables ${qpid.amqp_port} instead, just in case, and it's still reporting that variable name rather than a value.
Is this a feature that doesn't work any more, or am I plugging it in wrong?
The feature is still used in the broker configuration, and so you should be able to use it. Can you share your code / config so we can see what the problem might be?

Do I build a Docker Image for this or do I Need to use Docker Compose?

I'm trying to get into Docker and using a current project as a learning exercise. It's a fairly basic application that uses Centos 7, Node and MySQL.
My first thought was pull a CentOS 7 image and the images for the others mentioned above.
When I tested out a Node image I realized I might not need a Centos Image but I do need MySQL... Not what the recommended way to combine images for this or even if it is the right route for this project.
Should I start with an OS image and install all the dependencies/services I would need like on any other server or do I run the images together with Docker Compose or something like that?
I tried looking at building WordPress images to see what they were doing but most tutorials just reference a prebuilt image.
I'm sure I could hack something together but I wanted to go the preferred route.
My hope was that I could specify all of these things in a Dockerfile so I could share it easily.
Any direction on this is appreciated. Thanks!
Quoting from the official best practices:
Run only one process per container
In almost all cases, you should only run a single process in a single container. Decoupling applications into multiple containers makes it much easier to scale horizontally and reuse containers. If that service depends on another service, make use of container linking.
If you want to run more than one process in a container you will need some kind of supervisor or init system and you will lose some of the features docker provides (logging, automated restarting).
All in all it is more hassle than running a container per process. And the latter is slightly secure as well, as the processes cannot attack other processes that easily.
So in your concrete case you would run one mysql container and one node container (possibly based on node:onbuild) and link mysql to node to let node talk to mysql.

SonarQube, no data for depth inheritance tree and other metrics

Hi this is my first post on legendary Stackoverflow!
I am currently trying to find a platform in order to create an inheritance plugin (in order to calculate metrics) for my thesis and I am trying SonarQube for this purpose. So far, I am learning the basics. The problem is that although everything goes fine, I have a problem when it's time to add a "custom measures" widget. As you can see, the widget shows the message "no data" on configure widget menu, when I add measures like Number of Children, Depth in Tree.
I have installed SonarQube 3.7 for Windows 7 64bit and SonarQube Runner version 2.3. I have also installed SonarQube on eclipse. My .properties file is this :
Thanks in advance :-)
The computing of LCOM4 and RFC metrics is based on byte-code, so if you want to have them, you need to:
compile your code
add the "sonar.binaries" property in your file (it should point to the folder where the code was compiled, e.g. "target/classes" or "bin")
As for the 2 other metrics, they are not fed by SonarQube. So we'll eventually remove them (https://jira.codehaus.org/browse/SONAR-4643).