How to monitor Postgres for long-running transactions? [closed] - postgresql

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
The community reviewed whether to reopen this question 1 year ago and left it closed:
Original close reason(s) were not resolved
Can the duration of Postgres transactions be monitored? I would like to be notified of long-running transactions, primarily to spot "idle in transaction" issues before they cause problems.

The check_postgres script from the Bucardo project offers a variety of monitoring options, including AFAIK options for long running idle transactions.

you can monitor content of pg_stat_activity system table

Related

Using django-celery,how do I get the worker to process tasks defined outside of tasks.py? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
Is it even possible to define tasks outside tasks.py?
You can define tasks outside of tasks.py, you just need to tell the workers where the tasks are. You can do that using the CELERY_INCLUDE setting (or the -I argument to celery worker)
If you mean sending task source code to the workers then that is a more complex problem. It can be solved but it will be very limited.

How to Take MongoDB BackUp [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I have a MongoDB Data Base Having around 50 collections..
It Contain some master collection and some transaction collections.
I want to take backup of my database every 5 hour .. PLz suggest some solution to do that
This question is very likely to be closed, but I'll give you a hand anyways. Dumping a mongo database is very easy. Look at the mongodump command. Once you have this, set up a cron job to execute it when you want (in this case, every 5 hours).
For some more information on setting up cron jobs, take a look here.

Set up time in ACCESS [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
i have a question about access 2000 or 2003 , can i set up a time for each day that it automatically click on a button in form to perform a query ? is this possible, i think u have to write a VGA code for this ?
Yes, you can do this. To expand on Remou's suggestion:
Create an event in Windows Task Scheduler to run at the same time every day.
The event will call a macro in your Access db.
The macro will call the procedure behind the button.

Mongodb server specs [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
May i ask what is the best server specs for mongodb?
With initial request of 5k - 10k read / writes.
I don't have any idea with this please help me.
Thanks In Advance!
A normal configuration desktop should be able to handle this requirement. But may not be recommended for the production deployment.
But 10Gen, the mongodb company recommends $7K - $10K range boxes for optimal performance (in their free course offered a month ago). You can watch 9th video of playlist 7 about MongoDB DBA Tutorials or Hardware Requirements.
Again it varies based on different facts and you can take some tips from these videos to move forward.

Heroku Load Time "Connection Reset and empty page sometime" [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I have hosted a Facebook app on Heroku. The code was perfect on my server but when I hosted it on Heroku and the entries in the database become more it is now showing blank page sometime and it shows Connection reset problem.... What should I do ? I am in the middle of the contest. Though I have installed ClearDB MySQL Database Punch,MemCachier 100 MB and 5 dynos for the host. Please help me what should I do now ?
Make sure you close the db connection each time you open it. Also increase the memory_limit in the php.ini.