From: Alex Gorbachenko <agent_007@immo.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] Любопытная ссылка про 1С и Alt Linux
Date: Fri, 18 Jan 2008 14:09:35 +0300
Message-ID: <20080118140935.2966b868@satellite.immo> (raw)
In-Reply-To: <20080118103917.GB18077@hell.fortress>
[-- Attachment #1: Type: text/plain, Size: 1233 bytes --]
On Fri, 18 Jan 2008 13:39:17 +0300
Alexey wrote:
>Это значит "мне надо поднять 1С, но постгрес я до этого в глаза
>не видел" ;-)
ты же модуль к альтератору писал вроде.
стандартно, берём размер памяти
(RAM), ставим:
shared_buffers = 1/8 RAM или больше (но не более 1/4);
work_mem в 1/20 RAM, maintenance_work_mem в 1/4;
max_fsm_relations в планируемое кол-во таблиц в базах * 1.5;
max_fsm_pages в max_fsm_relations * 2000;
fsync = true;
wal_sync_method = fdatasync;
commit_delay = от 10 до 100 ;
commit_siblings = от 5 до 10;
effective_cache_size = 0.9 от значения cached, которое показывает free;
random_page_cost = 2 для быстрых cpu, 4 для медленных;
cpu_tuple_cost = 0.001 для быстрых cpu, 0.01 для медленных;
cpu_index_tuple_cost = 0.0005 для быстрых cpu, 0.005 для медленных;
в принципе, для среднестатистического 1С сервера нужно настроить только:
shared_buffers, work_mem, max_fsm_relations, max_fsm_pages, fsync,
wal_sync_method, effective_cache_size. это всё модуль алтератора может
сделать автоматом, задав только 1 вопрос: "сколько таблиц в базах" ?
ну и autovacuum включить ещё. с analyze treshhold'ом в 900, и vacuum
treshhold'ом в 1800.
--
np: Killswitch Engage - Holy Diver
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2008-01-18 11:09 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-16 15:39 Алексей Шенцев
2008-01-16 17:40 ` Алексей Данилович
2008-01-16 17:44 ` Владимир Черный
2008-01-16 18:19 ` Евгений
2008-01-16 20:16 ` Damir Shayhutdinov
2008-01-16 23:41 ` Olvin
2008-01-17 5:34 ` Шишков Евгений
2008-01-17 7:28 ` Андрей Черепанов
2008-01-18 9:26 ` Sasha Martsinuk
2008-01-18 9:31 ` Алексей Шенцев
2008-01-18 10:26 ` Alex Gorbachenko
2008-01-18 10:39 ` Alexey I. Froloff
2008-01-18 11:09 ` Alex Gorbachenko [this message]
2008-01-18 11:51 ` Алексей Шенцев
2008-01-18 11:57 ` Alex Gorbachenko
2008-01-18 11:58 ` Алексей Шенцев
2008-01-18 11:58 ` Alex Gorbachenko
2008-01-18 12:13 ` Алексей Шенцев
2008-01-18 12:31 ` Alex Gorbachenko
2008-01-18 12:48 ` Алексей Шенцев
2008-01-18 13:26 ` Alex Gorbachenko
2008-01-18 12:22 ` Алексей Шенцев
2008-01-18 12:38 ` Alex Gorbachenko
2008-01-18 10:44 ` Sergey Alembekov
2008-01-18 11:11 ` Alex Gorbachenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080118140935.2966b868@satellite.immo \
--to=agent_007@immo.ru \
--cc=community@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git