[TBASE-1128]
This commit is contained in:
parent
7725aa1c9a
commit
026d0b499b
|
@ -527,8 +527,8 @@ void httpAcceptHttpConnection(void *arg) {
|
|||
totalFds += pServer->pThreads[i].numOfFds;
|
||||
}
|
||||
|
||||
if (totalFds > tsHttpCacheSessions * 20) {
|
||||
httpError("fd:%d, ip:%s:%u, totalFds:%d larger than httpCacheSessions:%d*20, refuse connection",
|
||||
if (totalFds > tsHttpCacheSessions * 100) {
|
||||
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);
|
||||
taosCloseSocket(connFd);
|
||||
continue;
|
||||
|
|
|
@ -89,7 +89,7 @@ int httpStartSystem() {
|
|||
}
|
||||
|
||||
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) {
|
||||
httpError("http init timer failed");
|
||||
|
|
|
@ -246,9 +246,9 @@ void monitorStopSystem() {
|
|||
}
|
||||
|
||||
#ifdef CLUSTER
|
||||
monitorLPrint("dnode:%s is stopped", tsPrivateIp);
|
||||
monitorLPrint("dnode:%s monitor module is stopped", tsPrivateIp);
|
||||
#else
|
||||
monitorLPrint("dnode:%s is stopped", tsInternalIp);
|
||||
monitorLPrint("dnode:%s monitor module is stopped", tsInternalIp);
|
||||
#endif
|
||||
monitor->state = MONITOR_STATE_STOPPED;
|
||||
taosLogFp = NULL;
|
||||
|
|
|
@ -506,6 +506,8 @@ void *taosInitUdpConnection(char *ip, short port, char *label, int threads, void
|
|||
pConn->localPort = (int16_t)ntohs(sin.sin_port);
|
||||
}
|
||||
|
||||
strcpy(pConn->label, label);
|
||||
|
||||
if (pthread_create(&pConn->thread, &thAttr, taosRecvUdpData, pConn) != 0) {
|
||||
tError("%s failed to create thread to process UDP data, reason:%s", label, strerror(errno));
|
||||
taosCloseSocket(pConn->fd);
|
||||
|
@ -513,7 +515,6 @@ void *taosInitUdpConnection(char *ip, short port, char *label, int threads, void
|
|||
return NULL;
|
||||
}
|
||||
|
||||
strcpy(pConn->label, label);
|
||||
pConn->shandle = shandle;
|
||||
pConn->processData = fp;
|
||||
pConn->index = i;
|
||||
|
|
|
@ -136,6 +136,8 @@ int dnodeInitSystem() {
|
|||
return -1;
|
||||
}
|
||||
|
||||
vnodeInitMgmtIp();
|
||||
|
||||
tsPrintGlobalConfig();
|
||||
dPrint("Server IP address is:%s", tsInternalIp);
|
||||
|
||||
|
|
|
@ -235,7 +235,7 @@ int vnodeInitCommit(int vnode) {
|
|||
}
|
||||
|
||||
pVnode->pWrite += size;
|
||||
dTrace("vid:%d, commit log is initialized", vnode);
|
||||
dPrint("vid:%d, commit log is initialized", vnode);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -178,7 +178,7 @@ int vnodeOpenShellVnode(int vnode) {
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
|
@ -90,4 +90,6 @@ void vnodeProcessMsgFromMgmtSpec(SSchedMsg *sched) {
|
|||
|
||||
int vnodeInitMgmt() { return 0; }
|
||||
|
||||
void vnodeInitMgmtIp() {}
|
||||
|
||||
int vnodeSaveCreateMsgIntoQueue(SVnodeObj *pVnode, char *pMsg, int msgLen) { return 0; }
|
Loading…
Reference in New Issue