Fórum

LR 6.1.1 CE Cluster replicating problems

Sergio Belmar, modificado 10 Anos atrás.

LR 6.1.1 CE Cluster replicating problems

Junior Member Postagens: 30 Data de Entrada: 08/08/13 Postagens Recentes
Hello

I'm trying a LR 6.1.1 CE with Tomcat 7 bundled over two Ubuntu 12.04 (Ip address 192.168.1.172 and 192.168.1.173) using a NFS for data repository (mounted in both LR nodes) and a mysql server for db..
The basic cluster configuration seems to work ok (catalina.out fragment for lrcluster1):

09:54:25,505 INFO  [pool-2-thread-1][ClusterBase:160] Autodetecting JGroups outgoing IP address and interface for www.google.com:80
09:54:25,584 INFO  [pool-2-thread-1][ClusterBase:176] Setting JGroups outgoing IP address to 192.168.1.172 and interface to eth0

-------------------------------------------------------------------
GMS: address=lrcluster1-44307, cluster=LIFERAY-CONTROL-CHANNEL, physical address=192.168.1.172:51579
-------------------------------------------------------------------
09:54:32,519 INFO  [pool-2-thread-1][BaseReceiver:52] Accepted view [lrcluster1-44307|0] [lrcluster1-44307]
09:54:32,531 INFO  [pool-2-thread-1][ClusterBase:112] Create a new channel with properties UDP(oob_thread_pool_min_threads=2;bind_addr=/192.168.1.172;oob_thread_pool_keep_alive_time=30000;port_range=50;oob_thread_pool_enabled=true;stats=true;max_bundle_size=64000;mcast_send_buf_size=100000;receive_on_all_interfaces=false;diagnostics_addr=/224.0.75.75;mcast_recv_buf_size=500000;tos=8;bind_port=0;oob_thread_pool_rejection_policy=discard;mcast_port=23301;loopback=true;thread_pool_min_threads=2;oob_thread_pool_queue_enabled=true;name=UDP;enable_unicast_bundling=false;thread_pool_keep_alive_time=30000;thread_pool_enabled=true;thread_pool_max_threads=10;enable_diagnostics=true;thread_naming_pattern=cl;ucast_recv_buf_size=64000;ucast_send_buf_size=100000;ip_ttl=8;oob_thread_pool_queue_max_size=500;enable_bundling=true;thread_pool_queue_enabled=true;discard_incompatible_packets=false;use_local_host=false;diagnostics_port=7500;oob_thread_pool_max_threads=10;max_bundle_timeout=20;ip_mcast=true;mcast_group_addr=/239.255.0.1;bind_interface_str=;marshaller_pool_size=0;log_discard_msgs=true;num_timer_threads=4;thread_pool_queue_max_size=500;thread_pool_rejection_policy=Discard)
:PING(return_entire_cache=false;num_initial_members=2;break_on_coord_rsp=true;stats=true;name=PING;num_ping_requests=2;discovery_timeout=0;timeout=3000;num_initial_srv_members=0)
:MERGE2(stats=true;name=MERGE2;inconsistent_view_threshold=1;min_interval=5000;max_interval=10000)
:FD_SOCK(get_cache_timeout=1000;bind_addr=/192.168.1.172;sock_conn_timeout=1000;bind_interface_str=;stats=true;name=FD_SOCK;suspect_msg_interval=5000;keep_alive=true;start_port=0;num_tries=3)
:FD_ALL(interval=3000;stats=true;name=FD_ALL;msg_counts_as_heartbeat=false;timeout=5000)
:VERIFY_SUSPECT(bind_addr=/192.168.1.172;bind_interface_str=;stats=true;name=VERIFY_SUSPECT;num_msgs=1;use_icmp=false;timeout=1500)
:pbcast.NAKACK(gc_lag=50;use_mcast_xmit_req=false;use_mcast_xmit=true;xmit_from_random_member=false;stats=true;retransmit_timeouts=300,600,1200,2400,4800;exponential_backoff=0;log_not_found_msgs=true;enable_xmit_time_stats=false;discard_delivered_msgs=true;print_stability_history_on_failed_xmit=false;use_stats_for_retransmission=false;xmit_history_max_size=50;max_rebroadcast_timeout=2000;name=NAKACK;log_discard_msgs=true;max_xmit_buf_size=0;use_range_based_retransmitter=true)
:UNICAST(max_retransmit_time=60000;loopback=false;stats=true;name=UNICAST;timeout=300,600,1200,2400)
:pbcast.STABLE(desired_avg_gossip=20000;max_bytes=0;stats=true;name=STABLE;stability_delay=6000)
:FRAG(frag_size=8096;stats=true;name=FRAG;max_retained_buffer=70000)
:pbcast.GMS(print_local_addr=true;stats=true;disable_initial_coord=false;max_bundling_time=50;log_collect_msgs=true;resume_task_timeout=10000;print_physical_addrs=true;use_flush_if_present=true;merge_timeout=5000;num_prev_mbrs=50;leave_timeout=5000;view_bundling=true;name=GMS;join_timeout=5000;handle_concurrent_startup=true;view_ack_collection_timeout=2000)


-------------------------------------------------------------------
GMS: address=lrcluster1-33363, cluster=LIFERAY-TRANSPORT-CHANNEL-0, physical address=192.168.1.172:47831
-------------------------------------------------------------------
09:54:35,601 INFO  [pool-2-thread-1][BaseReceiver:52] Accepted view [lrcluster1-33363|0] [lrcluster1-33363]
09:54:35,611 INFO  [pool-2-thread-1][ClusterBase:112] Create a new channel with properties UDP(oob_thread_pool_min_threads=2;bind_addr=/192.168.1.172;oob_thread_pool_keep_alive_time=30000;port_range=50;oob_thread_pool_enabled=true;stats=true;max_bundle_size=64000;mcast_send_buf_size=100000;receive_on_all_interfaces=false;diagnostics_addr=/224.0.75.75;mcast_recv_buf_size=500000;tos=8;bind_port=0;oob_thread_pool_rejection_policy=discard;mcast_port=23302;loopback=true;thread_pool_min_threads=2;oob_thread_pool_queue_enabled=true;name=UDP;enable_unicast_bundling=false;thread_pool_keep_alive_time=30000;thread_pool_enabled=true;thread_pool_max_threads=10;enable_diagnostics=true;thread_naming_pattern=cl;ucast_recv_buf_size=64000;ucast_send_buf_size=100000;ip_ttl=8;oob_thread_pool_queue_max_size=500;enable_bundling=true;thread_pool_queue_enabled=true;discard_incompatible_packets=false;use_local_host=false;diagnostics_port=7500;oob_thread_pool_max_threads=10;max_bundle_timeout=20;ip_mcast=true;mcast_group_addr=/239.255.0.2;bind_interface_str=;marshaller_pool_size=0;log_discard_msgs=true;num_timer_threads=4;thread_pool_queue_max_size=500;thread_pool_rejection_policy=Discard)
:PING(return_entire_cache=false;num_initial_members=2;break_on_coord_rsp=true;stats=true;name=PING;num_ping_requests=2;discovery_timeout=0;timeout=3000;num_initial_srv_members=0)
:MERGE2(stats=true;name=MERGE2;inconsistent_view_threshold=1;min_interval=5000;max_interval=10000)
:FD_SOCK(get_cache_timeout=1000;bind_addr=/192.168.1.172;sock_conn_timeout=1000;bind_interface_str=;stats=true;name=FD_SOCK;suspect_msg_interval=5000;keep_alive=true;start_port=0;num_tries=3)
:FD_ALL(interval=3000;stats=true;name=FD_ALL;msg_counts_as_heartbeat=false;timeout=5000)
:VERIFY_SUSPECT(bind_addr=/192.168.1.172;bind_interface_str=;stats=true;name=VERIFY_SUSPECT;num_msgs=1;use_icmp=false;timeout=1500)
:pbcast.NAKACK(gc_lag=50;use_mcast_xmit_req=false;use_mcast_xmit=true;xmit_from_random_member=false;stats=true;retransmit_timeouts=300,600,1200,2400,4800;exponential_backoff=0;log_not_found_msgs=true;enable_xmit_time_stats=false;discard_delivered_msgs=true;print_stability_history_on_failed_xmit=false;use_stats_for_retransmission=false;xmit_history_max_size=50;max_rebroadcast_timeout=2000;name=NAKACK;log_discard_msgs=true;max_xmit_buf_size=0;use_range_based_retransmitter=true)
:UNICAST(max_retransmit_time=60000;loopback=false;stats=true;name=UNICAST;timeout=300,600,1200,2400)
:pbcast.STABLE(desired_avg_gossip=20000;max_bytes=0;stats=true;name=STABLE;stability_delay=6000)
:FRAG(frag_size=8096;stats=true;name=FRAG;max_retained_buffer=70000)
:pbcast.GMS(print_local_addr=true;stats=true;disable_initial_coord=false;max_bundling_time=50;log_collect_msgs=true;resume_task_timeout=10000;print_physical_addrs=true;use_flush_if_present=tru



, but sometimes, if I create data in one node, it doesn't appear in the other.

I attach my portal-ext.properties. Have you got any idea of which is the problem?

Regards
thumbnail
Vilmos Papp, modificado 10 Anos atrás.

RE: LR 6.1.1 CE Cluster replicating problems

Liferay Master Postagens: 529 Data de Entrada: 21/10/10 Postagens Recentes
One thing I saw problematic in your properties file:

dl.store.impl=com.liferay.portlet.documentlibrary.store.FileSystemStore


should be
dl.store.impl=com.liferay.portlet.documentlibrary.store.AdvancedFileSystemStore

in clustered environment.

Anyway, what do you mean exactly when you say : "if I create data in one node, it doesn't appear in the other" ?

The simples scenario to test a cluster setup is to add a Web Content Display portlet to a page on one node, create an article in it, then save the article. After this on the second node you should see the exactly same article displayed. After it you can modify it on node 2 and verify the modification on node 1 as well.

If it works, then the basic clustering works properly.
Sergio Belmar, modificado 10 Anos atrás.

RE: LR 6.1.1 CE Cluster replicating problems

Junior Member Postagens: 30 Data de Entrada: 08/08/13 Postagens Recentes
Thank you.

I'll try advancedFileSystemStore (I think it gave me any errors in the past)

I´ll try the test scenario and post the results.

Regars