<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    paulwong

    MONGODB連接池

    一般的WEB應用如果是連ORACLE,要做連接池的話是在JAVA端用第三方的LIB,但對于MONGODB,官方已經有現成的實現,只需配置即可。


    #控制系統在發生連接錯誤時是否重試 ,默認為false --boolean 
    mongo.options.autoConnectRetry=false 


    #每個主機允許的連接數(每個主機的連接池大?。斶B接池被用光時,會被阻塞住 ,默認為10 --int 
    mongo.options.connectionsPerHost=10 


    #multiplier for connectionsPerHost for # of threads that can block if connectionsPerHost is 10, and threadsAllowedToBlockForConnectionMultiplier is 5, then 50 threads can block more than that and an exception will be throw --int 
    mongo.options.threadsAllowedToBlockForConnectionMultiplier=5 


    #被阻塞線程從連接池獲取連接的最長等待時間(ms) --int 
    mongo.options.maxWaitTime 


    #在建立(打開)套接字連接時的超時時間(ms),默認為0(無限) --int 
    mongo.options.connectTimeout=0 


    #套接字超時時間;該值會被傳遞給Socket.setSoTimeout(int)。默認為0(無限) --int 
    mongo.options.socketTimeout=0 


    #This controls whether or not to have socket keep alive turned on (SO_KEEPALIVE). defaults to false --boolean 
    mongo.options.socketKeepAlive=false 


    #Override the DBCallback factory. Default is for the standard Mongo Java driver configuration --DBCallbackFactory 
    mongo.options.dbCallbackFactory 


    #//指明是否允許驅動從次要節點或者奴隸節點讀取數據,默認為false --boolean 
    mongo.options.slaveOk=false 


    #如果為true,驅動每次update后會發出一個getLastError命令來保證成功,默認為false --boolean 

    mongo.options.safe=false 

    #If set, the w value of WriteConcern for the connection is set to this. Defaults to 0; implies safe = true --int 
    mongo.options.w=0 


    #If set, the wtimeout value of WriteConcern for the connection is set to this. Defaults to 0; implies safe = true --int 
    mongo.options.wtimeout=0 


    #Sets the fsync value of WriteConcern for the connection. Defaults to false; implies safe = true --boolean 
    mongo.options.fsync=false

    posted on 2014-02-28 16:38 paulwong 閱讀(1141) 評論(0)  編輯  收藏 所屬分類: MONGODB

    主站蜘蛛池模板: 成人在线免费看片| 四虎影视永久免费观看网址| 亚洲人成www在线播放| 国产精品免费看久久久无码| 精品一区二区三区免费视频| 亚洲视频小说图片| 国产美女无遮挡免费视频网站 | 国产高清视频免费在线观看| 亚洲天堂男人天堂| 国产zzjjzzjj视频全免费| 国产精品偷伦视频观看免费| 亚洲精品国产suv一区88| 精品国产综合成人亚洲区| 成年午夜视频免费观看视频| 一个人免费视频观看在线www| 国产精品亚洲精品青青青| 亚洲中文字幕无码日韩| 好吊妞788免费视频播放| 大地资源中文在线观看免费版| 亚洲AV无码一区二区乱子仑| 亚洲国产精品无码久久SM| 日韩精品无码人妻免费视频| 日本一卡精品视频免费| 一级毛片免费在线| 最新国产精品亚洲| 亚洲精品视频在线播放| 中文字幕精品无码亚洲字| 午夜dj在线观看免费视频| 91热久久免费精品99| 中文字幕av免费专区| 国产精品自拍亚洲| 国产亚洲中文日本不卡二区| 亚洲AV永久无码精品一百度影院| 免费**毛片在线播放直播| 青青草免费在线视频| 最近中文字幕大全免费视频| 国产一级a毛一级a看免费人娇| 国产亚洲综合视频| 亚洲日韩精品国产一区二区三区| 久久亚洲国产成人精品性色| 亚洲色偷拍另类无码专区|