Сообщения

Сообщения за 2017

using pg_partman to help partitioning postgresql for zabbix

WARNINGS: PostgreSQL partitioning is not supported by Zabbix SIA technical support Changing partition configuration on existing datasets requires a great deal of care and is not recommended for newbies. The Zabbix server and web server should be stopped when making changes to DB. There are some solutions in Internet, but I have used my own with help of pg_partman - pg_partman is an extension to create and manage both time-based and serial-based table partition sets. These scripts cater for partitioning any Zabbix tables that include the clock column. Partitioning is recommended for large tables such as history* , trends* and events where the data size might exceed total physical RAM. When selecting a partitioning interval, try find a balance between minimising the number of partitions (e.g. use yearly or monthly), preventing empty partitions and preventing partition size from exceeding total physical RAM. For current version of pg_partman (>= 3.0.0): -- Create m...

JunOS BNG SCU

Занимался задачей "переезда" с устаревших juniper e-series (E120/E320) на новые mx480. На Е-шках были реализованы тарифы с дифференцированными скоростями доступа к локальным ресурсам и в сеть Интернет. Реализация немного необычная - маршруты, которые BRAS получает по BGP с бордера считаются внутренними ресурсами,  нет никаких статических prefix-list или acl! Реализовано это следующим образом: внутренний трафик "красится" в user-packet-class 5 на входном интерфейсе, эта метка используется в service-management профилях route-map "RM-localAS-bgp" permit 10 match ip address prefix-list "DEFAULT_ROUTE" set route-class 0 ! route-map "RM-localAS-bgp" permit 20 set route-class 50 ! router bgp 65500 table-map "RM-localAS-bgp" ! ... ip classifier-list "CL-local_AS-src" source-route-class 50 ip any any ! ip policy-list " POL-uplink " classifier-group " CL-local_AS-src " precedence 1000 ...