[jboss-jira] [JBoss JIRA] (AS7-1908) Provide tooling for converting AS7-specific JGroups configuration to native JG config

Richard Achmatowicz (JIRA) jira-events at lists.jboss.org
Tue Feb 7 14:03:48 EST 2012


    [ https://issues.jboss.org/browse/AS7-1908?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12664867#comment-12664867 ] 

Richard Achmatowicz commented on AS7-1908:
------------------------------------------

After discussion with Bela, two points:
- XML format is preferable to old style format above
- generating the XML from the protocol descriptions org.jgroups.conf.ProtocolConfiguration directly is preferable to creating a new org.jgroups.stack.ProtocolStack and obtaining the stack description from printProtocolSpec() as this has side effects

I reworked the implementation to make use of org.jgroups.conf.XmlConfigurator to produce a result String in XML format:

{noformat}
[standalone at localhost:9999 /] /subsystem=jgroups/stack=udp:export-native-configuration
{
    "outcome" => "success",
    "result" => "<config>
    <UDP oob_thread_pool.max_threads=\"200\" bind_addr=\"127.0.0.1\" oob_thread_pool.keep_alive_time=\"1000\" max_bundle_size=\"64000\" mcast_send_buf_size=\"640000\" diagnostics_addr=\"224.0.75.75\" mcast_recv_buf_size=\"25000000\" bind_port=\"55200\" mcast_port=\"45688\" thread_pool.min_threads=\"20\" oob_thread_pool.rejection_policy=\"discard\" thread_pool.max_threads=\"200\" enable_diagnostics=\"true\" ucast_send_buf_size=\"640000\" ucast_recv_buf_size=\"20000000\" thread_pool.enabled=\"true\" oob_thread_pool.enabled=\"true\" ip_ttl=\"2\" enable_bundling=\"false\" thread_pool.rejection_policy=\"discard\" discard_incompatible_packets=\"true\" thread_pool.keep_alive_time=\"5000\" diagnostics_port=\"7500\" thread_pool.queue_enabled=\"true\" mcast_addr=\"230.0.0.4\" singleton_name=\"udp\" max_bundle_timeout=\"30\" oob_thread_pool.queue_enabled=\"false\" oob_thread_pool.min_threads=\"20\" thread_pool.queue_max_size=\"1000\"/>
    <PING num_initial_members=\"3\" timeout=\"2000\"/>
    <MERGE2 min_interval=\"20000\" max_interval=\"100000\"/>
    <FD_SOCK bind_addr=\"127.0.0.1\" start_port=\"54200\"/>
    <FD max_tries=\"5\" timeout=\"6000\"/>
    <VERIFY_SUSPECT bind_addr=\"127.0.0.1\" timeout=\"1500\"/>
    <BARRIER />
    <pbcast.NAKACK use_mcast_xmit=\"true\" retransmit_timeout=\"300,600,1200,2400,4800\" discard_delivered_msgs=\"true\"/>
    <UNICAST2 timeout=\"300,600,1200,2400,3600\"/>
    <pbcast.STABLE desired_avg_gossip=\"50000\" max_bytes=\"400000\" stability_delay=\"1000\"/>
    <pbcast.GMS print_local_addr=\"true\" view_bundling=\"true\" join_timeout=\"3000\" view_ack_collection_timeout=\"5000\" resume_task_timeout=\"7500\"/>
    <UFC max_credits=\"2000000\" ignore_synchronous_response=\"true\"/>
    <MFC max_credits=\"2000000\" ignore_synchronous_response=\"true\"/>
    <FRAG2 frag_size=\"60000\"/>
</config>"
}
{noformat}
  
This contains all the defaults set by the JGroups subsystem as well as any property overrides specified via the management operations.

                
> Provide tooling for converting AS7-specific JGroups configuration to native JG config
> -------------------------------------------------------------------------------------
>
>                 Key: AS7-1908
>                 URL: https://issues.jboss.org/browse/AS7-1908
>             Project: Application Server 7
>          Issue Type: Feature Request
>          Components: Clustering
>    Affects Versions: 7.1.0.CR1
>            Reporter: Radoslav Husar
>            Assignee: Richard Achmatowicz
>            Priority: Trivial
>              Labels: eap6-ux
>
> We should be able to tests people's JG in AS7 configuration using standalone JGroups.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list