Skip to content

Instantly share code, notes, and snippets.

View damionjunk's full-sized avatar

Damion Junk damionjunk

View GitHub Profile
<subsystem xmlns="urn:jboss:domain:jgroups:1.1" default-stack="tcp">
<stack name="tcp">
<transport type="TCP" socket-binding="jgroups-tcp"/>
<!-- Use S3_Ping because we need to discover the IPs of
the other nodes, and AWS doesn't have multicast. -->
<protocol type="S3_PING">
<property name="secret_access_key">topsy</property>
<property name="access_key">krets</property>
19:03:13,785 INFO [org.jboss.modules] (main) JBoss Modules version 1.2.0.CR1
19:03:14,067 INFO [org.jboss.msc] (main) JBoss MSC version 1.0.4.GA
19:03:14,165 INFO [org.jboss.as] (MSC service thread 1-1) JBAS015899: JBoss AS 7.x.incremental.673 "TBD" starting
19:03:14,200 DEBUG [org.jboss.as.config] (MSC service thread 1-1) Configured system properties:
[Standalone] =
awt.toolkit = sun.awt.X11.XToolkit
file.encoding = UTF-8
file.encoding.pkg = sun.io
file.separator = /
java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
20:57:17,031 INFO [org.jboss.modules] (main) JBoss Modules version 1.2.0.CR1
20:57:17,295 INFO [org.jboss.msc] (main) JBoss MSC version 1.0.4.GA
20:57:17,407 INFO [org.jboss.as] (MSC service thread 1-1) JBAS015899: JBoss AS 7.x.incremental.673 "TBD" starting
20:57:17,444 DEBUG [org.jboss.as.config] (MSC service thread 1-1) Configured system properties:
[Standalone] =
awt.toolkit = sun.awt.X11.XToolkit
file.encoding = UTF-8
file.encoding.pkg = sun.io
file.separator = /
java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
<interfaces>
<interface name="management">
<inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
</interface>
<interface name="public">
<nic name="eth0"/>
</interface>
<interface name="unsecure">
<inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>
</interface>
@damionjunk
damionjunk / gist:5595234
Last active December 17, 2015 10:29
Working Immutant/Torquebox JGroups subsystem configuration for cluster node discovery.
<subsystem xmlns="urn:jboss:domain:jgroups:1.1" default-stack="tcp">
<stack name="tcp">
<transport type="TCP" socket-binding="jgroups-tcp"/>
<!-- Use S3_Ping because we need to discover the IPs of
the other nodes, and AWS doesn't have multicast. -->
<protocol type="S3_PING">
<!-- This user works -->
<property name="secret_access_key"></property>
<property name="access_key"></property>
@damionjunk
damionjunk / gist:5616083
Created May 20, 2013 22:24
Default Immutant/JBoss JGroups subsystem configuration
<subsystem xmlns="urn:jboss:domain:jgroups:1.1" default-stack="udp">
<stack name="udp">
<transport type="UDP" socket-binding="jgroups-udp"/>
<protocol type="PING"/>
<protocol type="MERGE3"/>
<protocol type="FD_SOCK" socket-binding="jgroups-udp-fd"/>
<protocol type="FD"/>
<protocol type="VERIFY_SUSPECT"/>
<protocol type="pbcast.NAKACK2"/>
<protocol type="UNICAST2"/>
@damionjunk
damionjunk / gist:5616174
Last active December 17, 2015 13:19
JGroups TCPPING configuration for two nodes, 'ip.address.node.1', and 'ip.address.node.2'. Obviously, replace those strings with the IP addresses of the two AWS nodes.
<subsystem xmlns="urn:jboss:domain:jgroups:1.1" default-stack="tcp">
<stack name="tcp">
<transport type="TCP" socket-binding="jgroups-tcp"/>
<protocol type="TCPPING">
<property name="timeout">30000</property>
<property name="initial_hosts">ip.address.node.1[7600],ip.address.node.2[7600]</property>
</protocol>
<protocol type="MERGE2"/>
<protocol type="FD_SOCK" socket-binding="jgroups-tcp-fd"/>
@damionjunk
damionjunk / gist:5624551
Created May 22, 2013 01:12
Ubuntu AS7 startup script
#!/bin/sh
#
# JBoss standalone control script
#
# Provided in JBoss AS 7.1.1
# Modified for Ubuntu Server 10.04 by koma
#
# chkconfig: - 80 20
# description: JBoss AS Standalone
# processname: standalone
# Place this file:
#
# /etc/jboss-as/jboss-as.conf
JBOSS_USER=jbossuser
STARTUP_WAIT=30
SHUTDOWN_WAIT=30
JBOSS_HOME=/home/jbossuser/jboss-as7
JBOSS_PIDFILE=/run/jboss-as-standalone.pid
11:00:31,182 INFO [ws-console] (http-localhost/127.0.0.1:8080-2) Started GET "/admin/reports" for 127.0.0.1 at 2013-05-24 11:00:31 -0400
11:00:31,248 INFO [ws-console] (http-localhost/127.0.0.1:8080-2) Processing by ReportsController#index as HTML
11:00:31,757 INFO [ws-console] (http-localhost/127.0.0.1:8080-2) Rendered reports/_search.html.haml (492.0ms)
11:00:31,757 INFO [ws-console] (http-localhost/127.0.0.1:8080-2) Rendered reports/index.html.haml within layouts/application (498.0ms)
11:00:32,189 INFO [ws-console] (http-localhost/127.0.0.1:8080-2) Rendered layouts/_navigation.html.haml (10.0ms)
11:00:32,192 INFO [ws-console] (http-localhost/127.0.0.1:8080-2) Rendered layouts/_messages.html.haml (0.0ms)
11:00:32,192 INFO [ws-console] (http-localhost/127.0.0.1:8080-2) Completed 200 OK in 943ms (Views: 942.0ms)