Skip to content

Comment on Ask HN: How to monitor usage per user to implement performance based pricing?

Comments

I worked for an infra provider. We used token buckets for network usage. We didn't have actual cpu usage but you can use zabbix for that. Memory is hard to capture because of paging etc

For database use, it's better to create separate dB if you want to charge by storage. If the tables are shared, use the (count of rows for customer/ total rows)* total table storage. Ideally this should be possible at tablespace level

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.