Am 17.04.2013 07:24, schrieb Dietmar Maurer: > >> Am 12.03.2013 18:53, schrieb Dietmar Maurer: >>>> Why does a single file creates less load? Both contain the same amount of >> data. >>> >>> A VM can use up to 32 network devices. Updating 32 files create more load >> than updating a single file? >> >> I want to proceed with this one. First i need to know how it works. > >> There is: >> >> Extract/read data FROM RRD: >> /usr/share/perl5/PVE/API2Tools.pm > > The basic support is in PVE::Cluster (broadcast_rrd, create_rrd_data, > create_rrd_graph) > >> Get VM Status and store these data in a hash: >> /usr/share/perl5/PVE/QemuServer.pm: sub vmstatus >> >> Then there is status.c in pve-cluster which has update_rrd_data. >> >> So status.c seems to create and update the rrd files. > > yes. > >> Who calls it and how does it get it's data? > > Data is sent wit corosync when you do PVE::Cluster::broadcast_rrd() > >> So with my idea i need to add another struct rrd_def_vm_net and >> another folder pve2-net? > > It is still not clear if we want a single file, or multiple files. I guess > this requires > careful evaluation. How does such system behave when we have 3000VMs? We need > to test that before we go further.
Oh i thought a single file containing 32 net in/out values. I've no idea how to test i'm not really familiar with rrd. I think it is important for a lot of people to be able to see the traffic for each VM even though the VM might have an internal interface. Stefan _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel