<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 


    #每個主機允許的連接數(每個主機的連接池大小),當連接池被用光時,會被阻塞住 ,默認為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

    主站蜘蛛池模板: 免费看少妇作爱视频| 中文字幕亚洲激情| 日日狠狠久久偷偷色综合免费 | 亚洲天堂免费在线| 一本久到久久亚洲综合| 午夜免费福利视频| 一区二区亚洲精品精华液| 亚洲人成网站在线观看播放| 大学生一级毛片免费看| 国产精品美女久久久免费 | 国产AV无码专区亚洲AV男同| 欧美大尺寸SUV免费| 91免费国产视频| 亚洲AV无码男人的天堂| 亚洲高清不卡视频| 亚洲午夜成人精品电影在线观看| 精品女同一区二区三区免费站| 粉色视频免费入口| 亚洲免费福利视频| 亚洲日本乱码在线观看| 国产精品高清全国免费观看| 美丽姑娘免费观看在线观看中文版| 色偷偷噜噜噜亚洲男人| 亚洲黄网在线观看| 亚洲日韩精品无码专区网址| 97无码免费人妻超级碰碰碰碰| 精品视频一区二区三区免费| 美女被艹免费视频| 在线aⅴ亚洲中文字幕| 亚洲色图视频在线观看| 亚洲精品亚洲人成在线观看| 又色又污又黄无遮挡的免费视| 久久不见久久见中文字幕免费| 性xxxxx大片免费视频| 国产精品美女久久久免费| 色窝窝亚洲av网| 亚洲熟女乱色一区二区三区| 精品亚洲成a人片在线观看| 亚洲人成网站在线播放vr| 亚洲精品无码99在线观看| 国产又大又粗又硬又长免费|