提交 026d0b49 编写于 作者: S slguan

[TBASE-1128]

上级 7725aa1c
...@@ -527,8 +527,8 @@ void httpAcceptHttpConnection(void *arg) { ...@@ -527,8 +527,8 @@ void httpAcceptHttpConnection(void *arg) {
totalFds += pServer->pThreads[i].numOfFds; totalFds += pServer->pThreads[i].numOfFds;
} }
if (totalFds > tsHttpCacheSessions * 20) { if (totalFds > tsHttpCacheSessions * 100) {
httpError("fd:%d, ip:%s:%u, totalFds:%d larger than httpCacheSessions:%d*20, refuse connection", httpError("fd:%d, ip:%s:%u, totalFds:%d larger than httpCacheSessions:%d*100, refuse connection",
connFd, inet_ntoa(clientAddr.sin_addr), htons(clientAddr.sin_port), totalFds, tsHttpCacheSessions); connFd, inet_ntoa(clientAddr.sin_addr), htons(clientAddr.sin_port), totalFds, tsHttpCacheSessions);
taosCloseSocket(connFd); taosCloseSocket(connFd);
continue; continue;
......
...@@ -89,7 +89,7 @@ int httpStartSystem() { ...@@ -89,7 +89,7 @@ int httpStartSystem() {
} }
if (httpServer->timerHandle == NULL) { if (httpServer->timerHandle == NULL) {
httpServer->timerHandle = taosTmrInit(tsHttpCacheSessions * 20 + 100, 200, 60000, "http"); httpServer->timerHandle = taosTmrInit(tsHttpCacheSessions * 100 + 100, 200, 60000, "http");
} }
if (httpServer->timerHandle == NULL) { if (httpServer->timerHandle == NULL) {
httpError("http init timer failed"); httpError("http init timer failed");
......
...@@ -246,9 +246,9 @@ void monitorStopSystem() { ...@@ -246,9 +246,9 @@ void monitorStopSystem() {
} }
#ifdef CLUSTER #ifdef CLUSTER
monitorLPrint("dnode:%s is stopped", tsPrivateIp); monitorLPrint("dnode:%s monitor module is stopped", tsPrivateIp);
#else #else
monitorLPrint("dnode:%s is stopped", tsInternalIp); monitorLPrint("dnode:%s monitor module is stopped", tsInternalIp);
#endif #endif
monitor->state = MONITOR_STATE_STOPPED; monitor->state = MONITOR_STATE_STOPPED;
taosLogFp = NULL; taosLogFp = NULL;
......
...@@ -506,6 +506,8 @@ void *taosInitUdpConnection(char *ip, short port, char *label, int threads, void ...@@ -506,6 +506,8 @@ void *taosInitUdpConnection(char *ip, short port, char *label, int threads, void
pConn->localPort = (int16_t)ntohs(sin.sin_port); pConn->localPort = (int16_t)ntohs(sin.sin_port);
} }
strcpy(pConn->label, label);
if (pthread_create(&pConn->thread, &thAttr, taosRecvUdpData, pConn) != 0) { if (pthread_create(&pConn->thread, &thAttr, taosRecvUdpData, pConn) != 0) {
tError("%s failed to create thread to process UDP data, reason:%s", label, strerror(errno)); tError("%s failed to create thread to process UDP data, reason:%s", label, strerror(errno));
taosCloseSocket(pConn->fd); taosCloseSocket(pConn->fd);
...@@ -513,7 +515,6 @@ void *taosInitUdpConnection(char *ip, short port, char *label, int threads, void ...@@ -513,7 +515,6 @@ void *taosInitUdpConnection(char *ip, short port, char *label, int threads, void
return NULL; return NULL;
} }
strcpy(pConn->label, label);
pConn->shandle = shandle; pConn->shandle = shandle;
pConn->processData = fp; pConn->processData = fp;
pConn->index = i; pConn->index = i;
......
...@@ -136,6 +136,8 @@ int dnodeInitSystem() { ...@@ -136,6 +136,8 @@ int dnodeInitSystem() {
return -1; return -1;
} }
vnodeInitMgmtIp();
tsPrintGlobalConfig(); tsPrintGlobalConfig();
dPrint("Server IP address is:%s", tsInternalIp); dPrint("Server IP address is:%s", tsInternalIp);
......
...@@ -235,7 +235,7 @@ int vnodeInitCommit(int vnode) { ...@@ -235,7 +235,7 @@ int vnodeInitCommit(int vnode) {
} }
pVnode->pWrite += size; pVnode->pWrite += size;
dTrace("vid:%d, commit log is initialized", vnode); dPrint("vid:%d, commit log is initialized", vnode);
return 0; return 0;
} }
......
...@@ -178,7 +178,7 @@ int vnodeOpenShellVnode(int vnode) { ...@@ -178,7 +178,7 @@ int vnodeOpenShellVnode(int vnode) {
return -1; return -1;
} }
dTrace("vid:%d, sessions:%d, shell is opened", vnode, pCfg->maxSessions); dPrint("vid:%d, sessions:%d, shell is opened", vnode, pCfg->maxSessions);
return TSDB_CODE_SUCCESS; return TSDB_CODE_SUCCESS;
} }
......
...@@ -90,4 +90,6 @@ void vnodeProcessMsgFromMgmtSpec(SSchedMsg *sched) { ...@@ -90,4 +90,6 @@ void vnodeProcessMsgFromMgmtSpec(SSchedMsg *sched) {
int vnodeInitMgmt() { return 0; } int vnodeInitMgmt() { return 0; }
void vnodeInitMgmtIp() {}
int vnodeSaveCreateMsgIntoQueue(SVnodeObj *pVnode, char *pMsg, int msgLen) { return 0; } int vnodeSaveCreateMsgIntoQueue(SVnodeObj *pVnode, char *pMsg, int msgLen) { return 0; }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册