Step-by-step guide
- Add the following lines to the integrator.sh file under $JVM_MEM_OPTS \ as below.
|
|
TID: [-1] [] [202X-0X-XX 10:30:03,426] WARN {org.apache.synapse.transport.passthru.PassThroughHttpSSLListener} - System may be unstable: HTTPS ListeningIOReactor encountered a checked exception : Too many open files {org.apache.synapse.transport.passthru.PassThroughHttpSSLListener} java.io.IOException: Too many open files at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method) at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:424
SELECT CONCAT(ROUND(SUM(data_length) / (1024*1024*1024),2),'GB') Data_Size, CONCAT(ROUND(SUM(index_length)/ (1024*1024*1024),2),'GB') Index_Size, CONCAT(ROUND((sum(data_length)+sum(index_length))/(1024*1024*1024),2),'GB') Total_Size FROM information_schema.TABLES WHERE TABLE_SCHEMA NOT IN ('information_schema', 'performance_schema', 'sys') GROUP BY NULL;
SELECT table_schema, table_name, CONCAT(ROUND((data_free / 1024 / 1024),2),'MB') data_free FROM information_schema.tables WHERE table_schema NOT IN ('mysql', 'information_schema', 'performance_schema', 'sys') AND ENGINE LIKE 'InnoDB' AND data_free > 100 * 1024 * 1024;
# Copyright (c) 2011, WSO2 Inc. (http://wso2.com) All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # register some connection factories # connectionfactory.[jndiname] = [ConnectionURL] connectionfactory.Connectionfactory = amqp://admin:admin@clientID/carbon?brokerlist='tcp://192.168.10.5:5682' # register some queues in JNDI using the form # queue.[jndiName] = [physicalName] queue.TestQ = TestQ # register some topics in JNDI using the form # topic.[jndiName] = [physicalName] topic.TestT = TestT
Instance Name
|
Registry Space
|
Instance Name
Registry Space Mysql database name/mounted path
|
BPS Manager
|
local
|
bpsman
|
config
|
greg /_system/BPSConfig
|
|
governance
|
greg /_system/governance
|
|
user-manager
|
greg
|
|
BPS Node1
|
local
|
bpsnode1
|
config
|
greg /_system/BPSConfig
|
|
governance
|
greg /_system/governance
|
|
user-manager
|
greg
|
|
BPS Node2
|
local
|
bpsnode2
|
config
|
greg /_system/BPSConfig
|
|
governance
|
greg /_system/governance
|
|
user-manager
|
greg
|
|
G-Reg
|
All
|
greg
|
bpsserver { domains{ wso2.bps.domain { tenant_range *; group_mgt_port 4005; mgt { hosts mgt.bps.wso2.com; } worker { hosts wkr.bps.wso2.com; } } } }
<parameter name="localMemberHost">192.168.10.1</parameter>
create database regdb; // Registry DB that used to mount to all BPS nodes create database bpsman; // BPS manager local database create database bpsnode1; // BPS Node1 local database create database bpsnode2; // BPS Node2 local database create database bpsdb; // BPS DB, that will be shared with all BPS create database bpsuserdb; // User DB, that will be shared with all BPS and Greg Nodes
<datasource> <name>WSO2_CARBON_DB</name> <description>The datasource used for registry and user manager</description> <jndiConfig> <name>jdbc/WSO2CarbonDB</name> </jndiConfig> <definition type="RDBMS"> <configuration> <url> jdbc:mysql://<IP>:3306/regdb?autoReconnect=true</url> <username>wso2carbon</username> <password>wso2carbon</password> <driverClassName>com.mysql.jdbc.Driver</driverClassName> <maxActive>50</maxActive> <maxWait>60000</maxWait> <testOnBorrow>true</testOnBorrow> <validationQuery>SELECT 1</validationQuery> <validationInterval>30000</validationInterval> </configuration> </definition> </datasource> <datasource> <name>WSO2_USER_DB</name> <description>The datasource used for registry and user manager</description> <jndiConfig> <name>jdbc/WSO2UserDB</name> </jndiConfig> <definition type="RDBMS"> <configuration> <url> jdbc:mysql://<IP>:3306/bpsuserdb?autoReconnect=true</url> <username>wso2carbon</username> <password>wso2carbon</password> <driverClassName>com.mysql.jdbc.Driver</driverClassName> <maxActive>50</maxActive> <maxWait>60000</maxWait> <testOnBorrow>true</testOnBorrow> <validationQuery>SELECT 1</validationQuery> <validationInterval>30000</validationInterval> </configuration> </definition> </datasource>
<Property name="dataSource">jdbc/WSO2UserDB</Property>
<dbConfig name="wso2registry"> <dataSource>jdbc/WSO2CarbonDB</dataSource> </dbConfig>
<Offset>100</Offset>
<clustering class="org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent" enable="true">
<parameter name="membershipScheme">wka</parameter>
<parameter name="domain">wso2.bps.domain</parameter>
<parameter name="localMemberHost">192.168.10.2</parameter> <parameter name="localMemberPort">4100</parameter>
<parameter name="properties"> <property name="backendServerURL" value="https://${hostName}:${httpsPort}/services/"/> <property name="mgtConsoleURL" value="https://${hostName}:${httpsPort}/"/> <property name="subDomain" value="mgt"/> </parameter>
<members> <member> <hostName>192.168.10.1</hostName> <port>4005</port> </member> </members>
<HostName>wkr.bps.wso2.com</HostName> <MgtHostName>mgt.bps.wso2.com</MgtHostName>
<DeploymentSynchronizer> <Enabled>true</Enabled> <AutoCommit>true</AutoCommit> <AutoCheckout>true</AutoCheckout> <RepositoryType>svn</RepositoryType> <SvnUrl>http://svnrepo.example.com/repos/</SvnUrl> <SvnUser>bps</SvnUser> <SvnPassword>bps123</SvnPassword> <SvnUrlAppendTenantId>true</SvnUrlAppendTenantId> </DeploymentSynchronizer>
<Connector protocol="org.apache.coyote.http11.Http11NioProtocol" port="9763" proxyPort="8280" <Connector protocol="org.apache.coyote.http11.Http11NioProtocol" port="9443" proxyPort="8243"
<datasource> <name>WSO2_Local_DB</name> <description>The datasource used for registry and user manager</description> <jndiConfig> <name>jdbc/WSO2LocalDB</name> </jndiConfig> <definition type="RDBMS"> <configuration> <url> jdbc:mysql://<IP>:3306/bpsman?autoReconnect=true</url> <username>wso2carbon</username> <password>wso2carbon</password> <driverClassName>com.mysql.jdbc.Driver</driverClassName> <maxActive>50</maxActive> <maxWait>60000</maxWait> <testOnBorrow>true</testOnBorrow> <validationQuery>SELECT 1</validationQuery> <validationInterval>30000</validationInterval> </configuration> </definition> </datasource> <datasource> <name>WSO2_REG_DB</name> <description>The datasource used for registry and user manager</description> <jndiConfig> <name>jdbc/WSO2RegDB</name> </jndiConfig> <definition type="RDBMS"> <configuration> <url> jdbc:mysql://<IP>:3306/regdb?autoReconnect=true</url> <username>wso2carbon</username> <password>wso2carbon</password> <driverClassName>com.mysql.jdbc.Driver</driverClassName> <maxActive>50</maxActive> <maxWait>60000</maxWait> <testOnBorrow>true</testOnBorrow> <validationQuery>SELECT 1</validationQuery> <validationInterval>30000</validationInterval> </configuration> </definition> </datasource> <datasource> <name>WSO2_USER_DB</name> <description>The datasource used for registry and user manager</description> <jndiConfig> <name>jdbc/WSO2UserDB</name> </jndiConfig> <definition type="RDBMS"> <configuration> <url>jdbc:mysql://<IP>:3306/bpsuserdb?autoReconnect=true</url> <username>wso2carbon</username> <password>wso2carbon</password> <driverClassName>com.mysql.jdbc.Driver</driverClassName> <maxActive>50</maxActive> <maxWait>60000</maxWait> <testOnBorrow>true</testOnBorrow> <validationQuery>SELECT 1</validationQuery> <validationInterval>30000</validationInterval> </configuration> </definition> </datasource>
<Property name="dataSource">jdbc/WSO2UserDB</Property>
<dbConfig name="wso2registry"> <dataSource>jdbc/WSO2LocalDB</dataSource> </dbConfig> <dbConfig name="bpsMountRegistry"> <dataSource>jdbc/WSO2RegDB</dataSource> </dbConfig> <remoteInstance url="https://<IP of G-Reg>:<HTTPS port of G-Reg>/registry"> <id>Mount1</id> <dbConfig>bpsMountRegistry</dbConfig> <readOnly>false</readOnly> <registryRoot>/</registryRoot> <cacheId>wso2carbon@jdbc:mysql://<IP>:3306/regdb</cacheId> </remoteInstance> <mount path="/_system/config" overwrite="true"> <instanceId>Mount1</instanceId> <targetPath>/_system/bpsConfig</targetPath> </mount> <mount path="/_system/governance" overwrite="true"> <instanceId>Mount1</instanceId> <targetPath>/_system/governance</targetPath> </mount>
synapse.datasources=bpsds
synapse.datasources.icFactory=com.sun.jndi.rmi.registry.RegistryContextFactory
## If following property is present , then assumes that there is an external JNDI provider and will not start a RMI registry
#synapse.datasources.providerUrl=rmi://localhost:2199
synapse.datasources.providerPort=2199
synapse.datasources.bpsds.registry=JNDI
synapse.datasources.bpsds.type=BasicDataSource
synapse.datasources.bpsds.driverClassName=com.mysql.jdbc.Driver
synapse.datasources.bpsds.url= jdbc:mysql://<IP>:3306/bpsdb?autoReconnect=true
synapse.datasources.bpsds.username=wso2carbon
synapse.datasources.bpsds.password=wso2carbon
synapse.datasources.bpsds.validationQuery=SELECT 1
synapse.datasources.bpsds.dsName=bpsds
synapse.datasources.bpsds.maxActive=100
synapse.datasources.bpsds.maxIdle=20
synapse.datasources.bpsds.maxWait=10000
<parameter name="localMemberHost">192.168.10.3</parameter> <parameter name="localMemberPort">4100</parameter>
<parameter name="properties"> <property name="backendServerURL" value="https://${hostName}:${httpsPort}/services/"/> <property name="mgtConsoleURL" value="https://${hostName}:${httpsPort}/"/> <property name="subDomain" value="worker"/> </parameter>
<DeploymentSynchronizer> <Enabled>true</Enabled> <AutoCommit>false</AutoCommit> <AutoCheckout>true</AutoCheckout> <RepositoryType>svn</RepositoryType> <SvnUrl>http://svnrepo.example.com/repos/</SvnUrl> <SvnUser>bps</SvnUser> <SvnPassword>bps123</SvnPassword> <SvnUrlAppendTenantId>true</SvnUrlAppendTenantId> </DeploymentSynchronizer>
<datasource> <name>WSO2_Local_DB</name> <description>The datasource used for registry and user manager</description> <jndiConfig> <name>jdbc/WSO2LocalDB</name> </jndiConfig> <definition type="RDBMS"> <configuration> <url> jdbc:mysql://<IP>:3306/bpsnode1?autoReconnect=true</url> <username>wso2carbon</username> <password>wso2carbon</password> <driverClassName>com.mysql.jdbc.Driver</driverClassName> <maxActive>50</maxActive> <maxWait>60000</maxWait> <testOnBorrow>true</testOnBorrow> <validationQuery>SELECT 1</validationQuery> <validationInterval>30000</validationInterval> </configuration> </definition> </datasource>
<remoteInstance url="https://<IP of G-Reg>:<HTTPS port of G-Reg>/registry"> <id>Mount1</id> <dbConfig>bpsMountRegistry</dbConfig> <readOnly>true</readOnly> <registryRoot>/</registryRoot> <cacheId>wso2carbon@jdbc:mysql://<IP>:3306/regdb</cacheId> </remoteInstance>
<parameter name="localMemberHost">192.168.10.2</parameter> <parameter name="localMemberPort">4200</parameter>
<Offset>100</Offset>
<datasource> <name>WSO2_Local_DB</name> <description>The datasource used for registry and user manager</description> <jndiConfig> <name>jdbc/WSO2LocalDB</name> </jndiConfig> <definition type="RDBMS"> <configuration> <url> jdbc:mysql://<IP>:3306/bpsnode2?autoReconnect=true</url> <username>wso2carbon</username> <password>wso2carbon</password> <driverClassName>com.mysql.jdbc.Driver</driverClassName> <maxActive>50</maxActive> <maxWait>60000</maxWait> <testOnBorrow>true</testOnBorrow> <validationQuery>SELECT 1</validationQuery> <validationInterval>30000</validationInterval> </configuration> </definition> </datasource>
TID: [0] [ELB] [<date>] INFO {org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent} - Member joined [9f29f21e-45e5-41f8-95bf-5a1bacc8e5db]: /192.168.10.2:4100 {org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent} TID: [0] [ELB] [<date>] INFO {org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent} - Member joined [9f29f21e-45e5-41f8-95bf-5a1bacc8e5db]: /192.168.10.2:4100 {org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent} TID: [0] [ELB] [<date>] INFO {org.wso2.carbon.core.clustering.hazelcast.util.MemberUtils} - Added member: Host:192.168.10.2, Remote Host:null, Port: 4100, HTTP:8280, HTTPS:8243, Domain: wso2.bps.domain, Sub-domain:mgt, Active:true {org.wso2.carbon.core.clustering.hazelcast.util.MemberUtils}
TID: [0] [BPS] [2014-01-13 11:07:58,565] INFO {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} - 'admin@carbon.super [-1234]' logged in at [2014-01-13 11:07:58,564+0530] {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
TID: [0] [BPS] [2014-01-13 11:15:15,201] INFO {org.springframework.context.support.ClassPathXmlApplicationContext} - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@417eb61: startup date [Mon Jan 13 11:15:15 GMT+05:30 2014]; root of context hierarchy {org.springframework.context.support.ClassPathXmlApplicationContext} TID: [0] [BPS] [2014-01-13 11:15:15,203] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from class path resource [beans.xml] {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} TID: [0] [BPS] [2014-01-13 11:15:15,252] INFO {org.apache.ode.bpel.compiler.BpelC} - info: [CompilingProcess] Compiling BPEL process. {org.apache.ode.bpel.compiler.BpelC} TID: [0] [BPS] [2014-01-13 11:15:17,136] INFO {org.wso2.carbon.bpel.core.ode.integration.store.TenantProcessStoreImpl} - Deploying BPEL archive: /home/wso2/4.2.0/BPS320/Mgr/9jan/wso2bps-3.2.0/repository/deployment/server/bpel/CustomerInfo.zip {org.wso2.carbon.bpel.core.ode.integration.store.TenantProcessStoreImpl} TID: [0] [BPS] [2014-01-13 11:15:17,164] INFO {org.springframework.context.support.ClassPathXmlApplicationContext} - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@7c50b04f: startup date [Mon Jan 13 11:15:17 GMT+05:30 2014]; root of context hierarchy {org.springframework.context.support.ClassPathXmlApplicationContext} TID: [0] [BPS] [2014-01-13 11:15:17,166] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from class path resource [beans.xml] {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} TID: [0] [BPS] [2014-01-13 11:15:17,168] INFO {org.wso2.carbon.bpel.core.ode.integration.store.TenantProcessStoreImpl} - Starting deployment of processes from directory /home/wso2/4.2.0/BPS320/Mgr/9jan/wso2bps-3.2.0/repository/bpel/-1234/CustomerInfo-6 {org.wso2.carbon.bpel.core.ode.integration.store.TenantProcessStoreImpl} TID: [0] [BPS] [2014-01-13 11:15:17,168] INFO {org.springframework.context.support.ClassPathXmlApplicationContext} - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@1567524c: startup date [Mon Jan 13 11:15:17 GMT+05:30 2014]; root of context hierarchy {org.springframework.context.support.ClassPathXmlApplicationContext} TID: [0] [BPS] [2014-01-13 11:15:17,170] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from class path resource [beans.xml] {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} TID: [0] [BPS] [2014-01-13 11:15:17,206] INFO {org.apache.ode.bpel.compiler.BpelC} - info: [CompilingProcess] Compiling BPEL process. {org.apache.ode.bpel.compiler.BpelC} TID: [0] [BPS] [2014-01-13 11:15:17,393] INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} - Deploying Axis2 service: CustomerInfoService {super-tenant} {org.wso2.carbon.core.deployment.DeploymentInterceptor} TID: [0] [BPS] [2014-01-13 11:15:17,419] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: CustomerInfoService - {org.apache.axis2.deployment.DeploymentEngine} TID: [0] [BPS] [2014-01-13 11:15:17,453] INFO {org.apache.ode.bpel.engine.BpelServerImpl} - Registered process {http://wso2.org/bps/samples/CustomerInfo}CustomerInfo-6. {org.apache.ode.bpel.engine.BpelServerImpl} TID: [0] [BPS] [2014-01-13 11:15:21,109] INFO {org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask} - Sent [SynchronizeRepositoryRequest{tenantId=-1234, tenantDomain='carbon.super', messageId=03bdc35e-89bb-4780-ba43-00f7fbd09e0c}] {org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask}
TID: [0] [BPS] [2014-01-13 11:15:21,117] INFO {org.wso2.carbon.core.clustering.hazelcast.HazelcastClusterMessageListener} - Received ClusteringMessage: SynchronizeRepositoryRequest{tenantId=-1234, tenantDomain='carbon.super', messageId=03bdc35e-89bb-4780-ba43-00f7fbd09e0c} {org.wso2.carbon.core.clustering.hazelcast.HazelcastClusterMessageListener} TID: [0] [BPS] [2014-01-13 11:15:21,117] INFO {org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest} - Received [SynchronizeRepositoryRequest{tenantId=-1234, tenantDomain='carbon.super', messageId=03bdc35e-89bb-4780-ba43-00f7fbd09e0c}] {org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest} TID: [0] [BPS] [2014-01-13 11:15:21,117] INFO {org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest} - Updating repo update required parameter {org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest} TID: [0] [BPS] [2014-01-13 11:15:26,101] INFO {org.wso2.carbon.bpel.core.ode.integration.store.TenantProcessStoreImpl} - Deploying BPEL archive: /home/wso2/4.2.0/BPS320/Wrk1/9jan/wso2bps-3.2.0/repository/deployment/server/bpel/CustomerInfo.zip {org.wso2.carbon.bpel.core.ode.integration.store.TenantProcessStoreImpl} TID: [0] [BPS] [2014-01-13 11:15:26,264] INFO {org.wso2.carbon.bpel.core.ode.integration.store.TenantProcessStoreImpl} - Looking for BPEL package in file system for deployment unit CustomerInfo-6 {org.wso2.carbon.bpel.core.ode.integration.store.TenantProcessStoreImpl} TID: [0] [BPS] [2014-01-13 11:15:26,492] INFO {org.springframework.context.support.ClassPathXmlApplicationContext} - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@261abf16: startup date [Mon Jan 13 11:15:26 GMT+05:30 2014]; root of context hierarchy {org.springframework.context.support.ClassPathXmlApplicationContext} TID: [0] [BPS] [2014-01-13 11:15:26,495] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from class path resource [beans.xml] {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} TID: [0] [BPS] [2014-01-13 11:15:26,527] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: CustomerInfoService - {org.apache.axis2.deployment.DeploymentEngine} TID: [0] [BPS] [2014-01-13 11:15:26,540] INFO {org.apache.ode.bpel.engine.BpelServerImpl} - Registered process {http://wso2.org/bps/samples/CustomerInfo}CustomerInfo-6. {org.apache.ode.bpel.engine.BpelServerImpl}