Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion connection lost in azure websites
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
christkv  
View profile  
 More options Sep 25 2012, 9:58 am
From: christkv <chris...@gmail.com>
Date: Tue, 25 Sep 2012 06:58:54 -0700 (PDT)
Local: Tues, Sep 25 2012 9:58 am
Subject: Re: connection lost in azure websites

A good place to start is the docs

http://mongodb.github.com/node-mongodb-native/markdown-docs/database....

new mongodb.Server(host, port, {socketOptions : {keepAlive: true}} )

When it comes to why it behaves differently on azure I don't know.
Different environment causes different problems.

On Tuesday, September 25, 2012 3:15:25 PM UTC+2, José F. Romaniello wrote:

> Hi Christian and thank you very much for your prompt response. I have few
> questions, I will write in-line

> 2012/9/25 Christian Kvalheim <chri...@gmail.com <javascript:>>

>> if there is no activity on a connection mongodb will close it after 10
>> minutes.

> Why we cant reproduce this when running it locally or in a VM in the cloud?

>> http://christiankvalheim.com/post/32209721702/tcp-keepalive

>> set the keep alive settings on the driver and see if it helps.
>> Unfortunately I don't have any experience with Azure myself so if does not
>> help it might be a Azure thing.

>> Auto reconnect means it will reconnect on the next operation not that the
>> error is magically handled. The reason is simple. If an insert or update is
>> in flight the driver cannot just automatically replay the insert/update as
>> it might have gone through before the failure.

> You mention insert/update, but is this still valid for queries
> (collection.find(...).toArray())?

> and the last question is what is the syntax for seting the keepAlive?, I
> cant find any example. I saw that the Server constructor has a
> socketOptions I imagine something like this:

> new mongodb.Server(host, port, {keepAlive: true} )

>  thanks again!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.