HASingleton deployment
by Brian Stansberry
Moving a discussion to the dev list.
Paul, using parallel operations instead of storing metadata with the
deployment resource itself has a couple drawbacks:
1) On restart of the server the special handling information implicit in
the parallel deployment ops is lost and the deployment becomes a
non-singleton.
2) In a managed domain, the "special" operation can propagate to the
relevant servers in the domain at the time it is invoked, but subsequent
to that if another server is added to a server group that runs this
deployment, again the special handling information is lost.
The stuff Thomas is working on that I mentioned is at
https://github.com/jbossas/jboss-as/pull/2790.
On 9/12/12 12:17 AM, Paul Ferraro wrote:
> I did spend some time thinking about this last week while staring out at the Mediterranean Sea this past week.
> Fundamentally, implementing singleton deployments simply requires wrapping the corresponding Service<DeploymentUnit> in a SingletonService<DeploymentUnit>. The effect is the deployment unit will be installed on all nodes in the cluster, but will start on only 1 node at a time. The end result is more agile than what we had in EAP5, since we're only starting/stopping existing services, not creating them from from scratch.
> From a domain model perspective, rather than tack on configuration meta data to the deployment resource itself, I think it would be simpler/cleaner to provide a parallel set of deploy/undeploy/redeploy operations. The deploy/redeploy operations will accept additional optional parameters for cluster name and node preference (for a preferred node election policy).
> For standalone mode, it might still be nice to provide a separate file scanner using a distinct location that creates singleton deployments. To clarify, this doesn't mean making the deployment scanner itself a singleton service, but rather the operations created by the scanner will install singleton deployment units instead of normal deployment units.
>
> Thoughts/comments?
>
> Paul
>
> ----- Original Message -----
>> From: "Brian Stansberry" <brian.stansberry(a)redhat.com>
>> To: "Paul Ferraro" <pferraro(a)redhat.com>
>> Sent: Wednesday, August 29, 2012 1:05:19 PM
>> Subject: HASingleton related issues in the EAP 6.1 PRD
>>
>> Care to comment on $subject at
>> https://docspace.corp.redhat.com/docs/DOC-105593 ?
>>
>> As I commented, I don't want to see an EAP 5-ish solution based on
>> activating a scanner when a node becomes master. That would be a
>> standalone-only hack. I think something along the lines of
>> associating
>> some configuration metadata with the deployment=* resource in the
>> management model makes more sense, and then some clustering
>> integration
>> to "(de)activate" the deployment.
>>
>> If you agree, we should chat about this a bit on the jboss-as7-dev
>> list
>> before you go. The "associating some configuration metadata with the
>> deployment=* resource" part intersects with some stuff Thomas Diesler
>> was trying to do, and the "activate the deployment" part intersects
>> with
>> some stuff Stuart Douglas was working on, as well as some OSGi stuff.
>>
>> --
>> Brian Stansberry
>> Principal Software Engineer
>> JBoss by Red Hat
>>
--
Brian Stansberry
Principal Software Engineer
JBoss by Red Hat
12 years, 3 months
Re: [jboss-as7-dev] Additional SSH socket for Karaf
by Thomas Diesler
I suggest to introduce a little abstraction here. What is currently done
by Karaf (i.e. call into Mina, etc) should be done by AS7. AS7 would
then provide a service that Karaf can use to obtain the readily
configured socket.
Meanwhile, it is ok to go ahead as it is and let Karaf create that
socket. This will give us an environment that we can work with and
collect issues that need to be done for completion.
On 09/13/2012 08:06 PM, Nodet, Guillaume wrote:
> The SSHD layer uses NIO through Apache Mina, so while the
> SocketBinding can be used to retrieve the port and address to bind the
> server socket to, it can't be used to create the socket itself.
>
> On Thu, Sep 13, 2012 at 7:35 PM, Thomas Diesler
> <thomas.diesler(a)jboss.com> wrote:
>> Yes, I know that part.
>>
>> Can I use SocketBinding.createServerSocket() to get an ready configured SSH
>> socket that I can give to Karaf?
>> How does this integrate with the security layer?
>>
>> On 09/13/2012 05:51 PM, Tomaž Cerar wrote:
>>
>> Thomas,
>>
>> we do have socket-binding service that provides/injects requested socket
>> binding into your service.
>>
>> All you need to do is to define your own Service that field of type
>> InjectedValue<SocketBinding> binding
>>
>> and then you can just inject socket binding like this:
>>
>> final ServiceBuilder<MyService> serviceBuilder =
>> context.getServiceTarget().addService(MyServiceName.append(name), service)
>>
>> .addDependency(SocketBinding.JBOSS_BINDING_NAME.append(bindingRef),
>> SocketBinding.class, service.getBinding());
>>
>> where bindingRef is name of socket-binding in standalone.xml (or mgmt model)
>>
>> Hope that answered your question. or did i misunderstood it...
>>
>> --
>> tomaz
>>
>>
>>
>> On Thu, Sep 13, 2012 at 5:43 PM, Thomas Diesler <thomas.diesler(a)jboss.com>
>> wrote:
>>> Tomaz,
>>>
>>> do we have a service that can provide an SSH socket based on a given
>>> socket-binding?
>>>
>>> What mina is doing should be done by an AS7 service. Karaf could then use
>>> a SSHSocketProviderService that abstracts the details of how this socket is
>>> provided/configured.
>>> AS7 must be in control of creating that socket based on its configuration.
>>>
>>> cheers
>>> --thomas
>>>
>>>
>>> On 09/13/2012 05:38 PM, Nodet, Guillaume wrote:
>>>> What do you mean by 'socket-binding' ?
>>>> The goal is not to bridge to the OS ssh server, but to start a java
>>>> ssh server inside AS7 using Apache Mina SSHD.
>>>>
>>>> On Thu, Sep 13, 2012 at 5:16 PM, Tomaž Cerar <tomaz.cerar(a)gmail.com>
>>>> wrote:
>>>>> That is an option,
>>>>> but you need to use socket-binding to do that.
>>>>>
>>>>> --
>>>>> tomaz
>>>>>
>>>>> On Thu, Sep 13, 2012 at 3:14 PM, Thomas Diesler
>>>>> <thomas.diesler(a)jboss.com>
>>>>> wrote:
>>>>>> Folks,
>>>>>>
>>>>>> https://issues.jboss.org/browse/AS7-5544
>>>>>>
>>>>>> We like to integrate Apache Karaf with AS7. For that we need to open an
>>>>>> additional SSH socket.
>>>>>> Is that an option?
>>>>>>
>>>>>> cheers
>>>>>> -thomas
>>>>>>
>>>>>> --
>>>>>> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
>>>>>> Thomas Diesler
>>>>>> JBoss OSGi Lead
>>>>>> JBoss, a division of Red Hat
>>>>>> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> jboss-as7-dev mailing list
>>>>>> jboss-as7-dev(a)lists.jboss.org
>>>>>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>>>>>>
>>>>
>>> --
>>> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
>>> Thomas Diesler
>>> JBoss OSGi Lead
>>> JBoss, a division of Red Hat
>>> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
>>>
>>
>> --
>> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> Thomas Diesler
>> JBoss OSGi Lead
>> JBoss, a division of Red Hat
>> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
>
--
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
JBoss OSGi Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
12 years, 3 months
OSGi tests moved to integration/osgi
by Jason Greene
Due to the repeated intermittent failures, and the subsequent discussion on the problem being attributed to lazy subsystem activation. Instead of disabling them all (per policy), I have merged an update which isolates the OSGi tests to their own configuration with eager activation.
The drawback to this is that OSGi tests are not included in "smoke" tests. However, we always run the full test suite on every commit and PR anyway.
We can now monitor the situation and see if intermittent failures occur again.
12 years, 3 months
Re: [jboss-as7-dev] Additional SSH socket for Karaf
by Thomas Diesler
Tomaz,
do we have a service that can provide an SSH socket based on a given
socket-binding?
What mina is doing should be done by an AS7 service. Karaf could then
use a SSHSocketProviderService that abstracts the details of how this
socket is provided/configured.
AS7 must be in control of creating that socket based on its configuration.
cheers
--thomas
On 09/13/2012 05:38 PM, Nodet, Guillaume wrote:
> What do you mean by 'socket-binding' ?
> The goal is not to bridge to the OS ssh server, but to start a java
> ssh server inside AS7 using Apache Mina SSHD.
>
> On Thu, Sep 13, 2012 at 5:16 PM, Tomaž Cerar <tomaz.cerar(a)gmail.com> wrote:
>> That is an option,
>> but you need to use socket-binding to do that.
>>
>> --
>> tomaz
>>
>> On Thu, Sep 13, 2012 at 3:14 PM, Thomas Diesler <thomas.diesler(a)jboss.com>
>> wrote:
>>> Folks,
>>>
>>> https://issues.jboss.org/browse/AS7-5544
>>>
>>> We like to integrate Apache Karaf with AS7. For that we need to open an
>>> additional SSH socket.
>>> Is that an option?
>>>
>>> cheers
>>> -thomas
>>>
>>> --
>>> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
>>> Thomas Diesler
>>> JBoss OSGi Lead
>>> JBoss, a division of Red Hat
>>> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
>>>
>>>
>>> _______________________________________________
>>> jboss-as7-dev mailing list
>>> jboss-as7-dev(a)lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>>>
>
>
--
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
JBoss OSGi Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
12 years, 3 months
Updating modules
by Heiko Braun
What would be the proper way to update the web-console module? Do we leave "main" as is and create a second slot? Will anything other then main have precedence?
/Ike
12 years, 3 months