il_test.o
glite_lb_logd: ${LOGD_OBJS}
- ${LINK} -o $@ ${LOGD_OBJS} ${COMMON_LIB}_${nothrflavour} ${GLITE_GSS_LIB}_${nothrflavour} ${EXT_LIBS} ${GLOBUS_LIBS}
+ ${LINK} -o $@ ${LOGD_OBJS} ${COMMON_LIB}_${nothrflavour}
glite_lb_interlogd: ${INTERLOG_OBJS}
${LINK} -o $@ ${INTERLOG_OBJS} \
- ${COMMON_LIB}_${thrflavour} \
- ${GLITE_GSS_LIB}_${nothrflavour} \
- ${EXT_LIBS} ${GLOBUS_THRLIBS} -lpthread
+ ${COMMON_LIB}_${thrflavour}
glite_lb_notif_interlogd: ${INTERLOG_NOBJS}
${LINK} -o $@ ${INTERLOG_NOBJS} \
- ${COMMON_LIB}_${thrflavour} \
- ${GLITE_GSS_LIB}_${nothrflavour} \
- ${EXT_LIBS} ${GLOBUS_THRLIBS} -lpthread
+ ${COMMON_LIB}_${thrflavour}
default: all
-echo commented out -- fix needed
check.il: ${INTERLOG_TEST_OBJS}
- ${LINKXX} -o $@ ${COMMON_LIB}_${thrflavour} ${GLITE_GSS_LIB}_${nothrflavour} ${EXT_LIBS} ${GLOBUS_THRLIBS} ${TEST_LIBS} -lpthread $+
+ ${LINKXX} -o $@ ${COMMON_LIB}_${thrflavour} ${GLITE_GSS_LIB}_${nothrflavour} ${TEST_LIBS} -lpthread $+
dist: distsrc distbin
SRVBONES_LIB:= -L${stagedir}/lib -lglite_lb_server_bones
-LB_SERVER_SHARE_LIB:= -L${stagedir}/lib -lglite_lb_bkserver
+LB_SERVER_SHARE_LIB:=${stagedir}/lib/libglite_lb_bkserver.a
LB_PROXY_COMMON_LIB:= -L${stagedir}/lib -lglite_lb_common_${nothrflavour}
COMMON_LIBS:= -L${stagedir}/lib -lglite_lb_common_${nothrflavour} -lglite_security_gss_${nothrflavour}
GRIDSITE_LIBS = -lgridsite_globus `xml2-config --libs`
-glite_lb_proxy: lbproxy.o
+glite_lb_proxy: lbproxy.o ${LB_SERVER_SHARE_LIB}
@echo DEBUG: mysql_version=${mysql_version} mysql_prefix=${mysql_prefix}
@echo DEBUG: shell: x$(shell echo ${mysql_version} | cut -d. -f1,2)x
${LINK} -o $@ lbproxy.o ${LB_PROXY_LIBS}
${INSTALL} -m 755 glite_lb_proxy ${PREFIX}/bin/glite-lb-proxy
${INSTALL} -m 644 ${top_srcdir}/config/glite-lb-dbsetup-proxy.sql ${PREFIX}/etc
${INSTALL} -m 755 ${top_srcdir}/config/startup ${PREFIX}/etc/init.d/glite-lb-proxy
- if [ x${DOSTAGE} != xyes ]; then \
- ${INSTALL} -m 755 ${stagedir}/bin/glite-lb-interlogd ${PREFIX}/bin; \
- fi
+
+# don't do it due to RPM conflict
+# if [ x${DOSTAGE} != xyes ]; then \
+# ${INSTALL} -m 755 ${stagedir}/bin/glite-lb-interlogd ${PREFIX}/bin; \
+# fi
clean:
#define DEFAULTCS "lbserver/@localhost:lbproxy"
-#define CON_QUEUE 20 /* accept() */
+#define CON_QUEUE 20 /* accept() */
#define SLAVE_OVERLOAD 10 /* queue items per slave */
-#define CLNT_TIMEOUT 10 /* keep idle connection that many seconds */
-#define TOTAL_CLNT_TIMEOUT 60 /* one client may ask one slave multiple times */
- /* but only limited time to avoid DoS attacks */
-#define CLNT_REJECT_TIMEOUT 100000 /* time limit for client rejection in !usec! */
-#define DNS_TIMEOUT 5 /* how long wait for DNS lookup */
+#define IDLE_TIMEOUT 10 /* keep idle connection that many seconds */
+#define REQUEST_TIMEOUT 120 /* one client may ask one slave multiple times */
#define SLAVE_CONNS_MAX 500 /* commit suicide after that many connections */
-#define MASTER_TIMEOUT 30 /* maximal time of one-round of master network communication */
-#define SLAVE_TIMEOUT 30 /* maximal time of one-round of slave network communication */
/* file to store pid and generate semaphores key
*/
gethostname(host, sizeof host);
host[sizeof host - 1] = 0;
asprintf(&port, "%d", GLITE_WMSC_JOBID_DEFAULT_PORT);
- dprintf(("server address: %s:%d\n", host, port));
+ dprintf(("server address: %s:%s\n", host, port));
service_table[SRV_SERVE].conn = socket(PF_UNIX, SOCK_STREAM, 0);
if ( service_table[SRV_SERVE].conn < 0 ) { perror("socket()"); return 1; }
glite_srvbones_set_param(GLITE_SBPARAM_SLAVES_COUNT, slaves);
glite_srvbones_set_param(GLITE_SBPARAM_SLAVE_OVERLOAD, SLAVE_OVERLOAD);
glite_srvbones_set_param(GLITE_SBPARAM_SLAVE_CONNS_MAX, SLAVE_CONNS_MAX);
- to = (struct timeval){CLNT_TIMEOUT, 0};
- glite_srvbones_set_param(GLITE_SBPARAM_CONNECT_TIMEOUT, &to);
- to = (struct timeval){CLNT_TIMEOUT, 0};
+ to = (struct timeval){REQUEST_TIMEOUT, 0};
glite_srvbones_set_param(GLITE_SBPARAM_REQUEST_TIMEOUT, &to);
- to = (struct timeval){TOTAL_CLNT_TIMEOUT, 0};
+ to = (struct timeval){IDLE_TIMEOUT, 0};
glite_srvbones_set_param(GLITE_SBPARAM_IDLE_TIMEOUT, &to);
glite_srvbones_run(clnt_data_init, service_table, sizofa(service_table), debug);
{
struct clnt_data_t *cdata = (struct clnt_data_t *)data;
edg_wll_Context ctx;
- struct timeval total_to = { TOTAL_CLNT_TIMEOUT,0 },
- conn_start, now;
+ struct timeval conn_start, now;
if ( !(ctx = (edg_wll_Context) calloc(1, sizeof(*ctx))) ) {
fprintf(stderr, "Couldn't create context");
ctx->semset = semset;
ctx->semaphores = semaphores;
- ctx->p_tmp_timeout.tv_sec = SLAVE_TIMEOUT;
- ctx->p_tmp_timeout.tv_usec = 0;
- if ( total_to.tv_sec < ctx->p_tmp_timeout.tv_sec ) {
- ctx->p_tmp_timeout.tv_sec = total_to.tv_sec;
- ctx->p_tmp_timeout.tv_usec = total_to.tv_usec;
- }
-
ctx->srvName = strdup(host);
ctx->srvPort = atoi(port);