You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by deepak srinivasan <sd...@gmail.com> on 2013/01/09 11:00:43 UTC

Cache sharing on full clustering

Hi

I have a couple of questions

We are presently working on a project that requires cache sharing between
two machines running Apache Traffic Server in full clustering mode. Though
the machines enter in a cluster, they dont seem to share cache between
them. Browsing through the mail archives of ATS i found that you initially
had a similar problem (a long time back) which you subsequently rectified.
Can you please share what was the cause of your problem and how did you
solve it so it might help us. Thanks in advane for your reply

*We have two nodes in full clustering mode. Though the sharing of
configuration files seems to work fine, the cache between the
nodes doesn't seem to be shared among one another. A request in first
machine gets forwarded to Origin server though the cache exists in the
second machine. Can anyone please give any pointer as to where the problem
may exist*
*We are using ATS v 3.2.0.*
*
*
*We need to map the requests coming in to these two nodes to an origin
server.*
*We have configured our remap.config as*
*
*
*regex_map  http://xxx.yyy.zzz.[0-9]:8080/cns/RecordingInfo
http://xxx.yyy.zzz.aaa:8082/rest/rm/RecordingInfo @plugin=pluginsample.so
@pparam=locator @action=allow*
*
*
*reverse_map http://xxx.yyy.zzz.aaa:8082/rest/rm/RecordingInfo
http://xxx.yyy.zzz.*:8080/cns/RecordingInfo*
*
*
Can someone please comment on the remap configuration

______________________________________________________________________________________________________________________________________________


I am trying to create a Cont using TSContCreate inside the thread. I then
make a Cache read call using TSCacheRead inside the thread.
The data for CacheRead is passed using void* to the function.

However if I create the thread using TSThreadCreate, the call to cache read
is successfull.
However if I create the thread using pthread_create. The call fails.

I am trying the above scenario because I am getting the following error
using TSThreadCreate-

FATAL: UnixEThread.cc:83: failed assert `pipe(evpipe) >= 0`
/usr/local/bin/traffic_server - STACK TRACE:
/usr/local/lib/libtsutil.so.3(ink_fatal+0x88)[0x2b92c0e0a428]
/usr/local/lib/libtsutil.so.3(_ink_assert+0x1f)[0x2b92c0e08c8f]
/usr/local/bin/traffic_server(_ZN7EThreadC2E10ThreadTypei+0x497)[0x6bc267]
/usr/local/bin/traffic_server(TSThreadCreate+0x38)[0x4b7628]
/home/plugins/cnsapp.so(_ZN6CNSApp7requestEPP7ContextRSsP13tsapi_httptxnP10tsapi_cont+0x407)[0x2aaaae3db737]
/home/plugins/cnsapp.so[0x2aaaae3dce68]
/usr/local/bin/traffic_server(_ZN6HttpSM17state_api_calloutEiPv+0x171)[0x52e131]
/usr/local/bin/traffic_server(_ZN6HttpSM14set_next_stateEv+0xb02)[0x53a9f2]
/usr/local/bin/traffic_server(_ZN6HttpSM32state_read_client_request_headerEiPv+0x1f0)[0x52c840]
/usr/local/bin/traffic_server(_ZN6HttpSM12main_handlerEiPv+0xdc)[0x53101c]
/usr/local/bin/traffic_server[0x693c62]
/usr/local/bin/traffic_server(_ZN10NetHandler12mainNetEventEiP5Event+0x479)[0x68a269]
/usr/local/bin/traffic_server(_ZN7EThread13process_eventEP5Eventi+0x22f)[0x6b9b5f]
/usr/local/bin/traffic_server(_ZN7EThread7executeEv+0x5bc)[0x6ba46c]
/usr/local/bin/traffic_server[0x6b8fae]
/lib64/libpthread.so.0[0x3c28c0673d]
/lib64/libc.so.6(clone+0x6d)[0x3c280d40cd]



The call to TSThreadCreate doesn't fail in first instance. But it fails
after the pluggin runs for some time(like 5000 or more).

Any help is appreciated.



-- 
regards