- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
We have the postgres db crashes occasional. There is no dump. can we add the -c flag to the pg_ctl ?
Created ‎05-11-2015 01:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We have the postgres db crashes occasional.
There is no core dump.
Can we add the -c flag to the pg_ctl command in the /etc/init.d/cloudera-scm-server-db file?
$SU -c "pg_ctl start -c -w -D $DATA_DIR -l $SERVER_LOGFILE"
can we keep this change permanent?
Thanks
Doron
Created ‎05-12-2015 01:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can add the "-c" argument to the file in /etc/init.d if you like. You'll need to re-apply your fix when you upgrade CM.
Crashing isn't very common, so we don't plan to add this option by default to our script.
You can also consider moving to an independently managed postgresql database (or mysql or oracle), where you will have more control over these kinds of settings. The "embedded" postgresql db from cloudera-scm-server-db is not recommended for production.
Thanks,
Darren
Created ‎05-12-2015 01:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can add the "-c" argument to the file in /etc/init.d if you like. You'll need to re-apply your fix when you upgrade CM.
Crashing isn't very common, so we don't plan to add this option by default to our script.
You can also consider moving to an independently managed postgresql database (or mysql or oracle), where you will have more control over these kinds of settings. The "embedded" postgresql db from cloudera-scm-server-db is not recommended for production.
Thanks,
Darren
Created ‎05-13-2015 05:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks
we'll do that.
i.e. - currently we'll add the flag under init.d
for the long run we'll create an alternative robust DB.
Doron
