[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ifupdown / systemd



On 2016-01-12, Victor Wagner wrote:

> Лично мне вообще не слишком понятно зачем ускорять время загрузки.
> Загрузка происходит раз в несколько месяцев, при апгрейде ядра, и при
> этом все равно через раз fsck запускается.  Но если уж делать
> dependency-based порядок выполнения, зачем вместо того чтобы брать
> стандартный и все равно присутствующий в дистрибутиве инструмент,
> изобретать велосипед с квадратными колесами.

Официальный ответ от месии:

  http://0pointer.de/blog/projects/the-biggest-myths.html

  3 Myth: systemd's fast boot-up is irrelevant for servers.

  That is just completely not true. Many administrators actually are keen on
  reduced downtimes during maintenance windows. In High Availability setups it's
  kinda nice if the failed machine comes back up really fast. In cloud setups
  with a large number of VMs or containers the price of slow boots multiplies
  with the number of instances. Spending minutes of CPU and IO on really slow
  boots of hundreds of VMs or containers reduces your system's density
  drastically, heck, it even costs you more energy. Slow boots can be quite
  financially expensive. Then, fast booting of containers allows you to
  implement a logic such as socket activated containers, allowing you to
  drastically increase the density of your cloud system.

  Of course, in many server setups boot-up is indeed irrelevant, but systemd is
  supposed to cover the whole range. And yes, I am aware that often it is the
  server firmware that costs the most time at boot-up, and the OS anyways fast
  compared to that, but well, systemd is still supposed to cover the whole range
  (see above...), and no, not all servers have such bad firmware, and certainly
  not VMs and containers, which are servers of a kind, too.

Что такое socket activated containers?

Еще мне не ясно что может тупить при загрузке в VDS / облаке?

Тенденция то какая - один контейнер - один сервис.

Значит убираем все нафик. Остается статический /etc/network/interfaces,
мониторилка, sshd и основной сервис (mysqld, httpd, ...).

Вот я хостю бложик:

  bash# sudo pstree
  init─┬─acpid
       ├─cron
       ├─6*[getty]
       ├─lighttpd
       ├─rsyslogd─┬─{in:imklog}
       │          ├─{in:imuxsock}
       │          └─{rs:main Q:Reg}
       ├─sshd───sshd───sshd───bash───sudo───pstree
       ├─udevd
       └─xinetd

Расскажите мне зачем устанавливать:

 * logind
 * dbus
 * systemd
 * consolekit

Кстати удалить udevd - нельзя, от него зависит ядро ))

Еще не ясно зачем держать в KVM госте acpid - безопасно ли его будет удалить?
Перезагрузку с удаленным acpid хост пережил...

И зачем getty для VDS?

При апгрейде с wheezy приползли dbus, systemd и irqbalance. Их удалил.

-- 
http://defun.work/


Reply to: