Master / Slave(s) patch for Cacti 0.8.7b

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

Frizz
Cacti User
Posts: 80
Joined: Sat Mar 05, 2005 5:07 pm
Location: Herne Germany

Post by Frizz »

TheWitness wrote:I'm trying to free up some of my rare personal time these days, evident by my absence on the forums, to remove the fundamental issues that prevent us from doing the remote pollers.

I have given this topic so much thought, I need to do the development, so I can make some room in my brain for other things :)

TheWitness
Take all the time you need, to achieve this milestone in the Cacti architecture.
Let's have a talk about your ideas at the 3.CCC.eu (via Skype) at the 11.october 2008.
We're all very curious.
regards
-Frizz
Cacti 0.8.6j | Cactid 0.8.6j | RRDtool 1.2.23 |
SuSe 9.x | PHP 4.4.4 | MySQL 5.0.27 | IHS 2.0.42.1
Come and join the 3.CCC.eu
http://forums.cacti.net/viewtopic.php?t=27908
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Now that I have done some real large install's, I have found a dozen or so things that must change for the larger installs. Those changes should come first as they drive me absolutely nuts.

Larry
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

And Here they are, note quite a dozen, but again, they drive me nuts.

I have a few more to upload. I will have them uploaded in a minute.

Larry
Attachments
On this page, we need to either remove the Hosts dropdown, or make it an Ajax callback.
On this page, we need to either remove the Hosts dropdown, or make it an Ajax callback.
NewGraphs.jpg (89.73 KiB) Viewed 9935 times
Ditto here.
Ditto here.
Graphs1.jpg (91.91 KiB) Viewed 9935 times
This one is VERY annoying when you have more than 100k Data Sources.  I suggest a "View Mode" vs. "Edit Mode" or Ajax callbacks again.
This one is VERY annoying when you have more than 100k Data Sources. I suggest a "View Mode" vs. "Edit Mode" or Ajax callbacks again.
Graphs2.jpg (128.78 KiB) Viewed 9935 times
Ditto on the Host dropdown again.
Ditto on the Host dropdown again.
DataSources1.jpg (108.96 KiB) Viewed 9935 times
Ditto on the Host dropdown again.
Ditto on the Host dropdown again.
DataSources2.jpg (105.93 KiB) Viewed 9935 times
Take all the links and Tabify them.  No host filter required here.  Allow plugin developers to add tabs.
Take all the links and Tabify them. No host filter required here. Allow plugin developers to add tabs.
Devices1.jpg (103.61 KiB) Viewed 9935 times
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Here are a few more. More likely Aggregate users get bombed with this one.

Larry
Attachments
Another Host dropdown.
Another Host dropdown.
NewGraphs2.jpg (68.48 KiB) Viewed 9931 times
Almost the worst.  Well there are two in this class.
Almost the worst. Well there are two in this class.
NewGraphs3.jpg (107.69 KiB) Viewed 9931 times
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

As far as the Multiple Poller, the single thing that needs to be fixed in Cacti, is we need to move from telling spine or cmd.php from using polling hosts 1-5 to a system that allows comma delimited hosts also. This way we could say 1-2,4-5 or 1,2,4,5 and have host 3 polled by a different process or poller.

Simple enough really, then my plugin would work without too much trouble. I have attached it, still needs lots of work (like an interface to manage the pollers) as I didn't see any point in finishing it without the above changes in Cacti being made first.
Attachments
multipoller.zip
(11.76 KiB) Downloaded 465 times
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

cigamit wrote:move from telling spine or cmd.php from using polling hosts 1-5 to a system that allows comma delimited hosts also. This way we could say 1-2,4-5 or 1,2,4,5 and have host 3 polled by a different process or poller.
Was that on the roadmap, or not?
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

My plan was to add a poller_id field to each host, and do it that way. That design is a bit dated, 4+ years ago.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

My plugin does use a poller_id, but moving to multi-range approach also allows a plugin to be built that can push larger hosts off to their own process, which is something we did discuss before I believe.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Ah, in 0.8.7c, I refer to this as process leveling I think. Need to update the documentation. However, it is controlled by host range again. We are just smarter about what that host range is though.

In hindsignt, we should be measuring performance of all the poller items and hosts to do this better though I think.

Larry
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
driden91
Cacti User
Posts: 52
Joined: Fri Jan 20, 2006 10:38 am

Post by driden91 »

hello

With this patch it's possible in exemple to have 300 hosts on the master and 300 hosts on the slave and see all hosts on one cacti interfaces ?

make a load-balancing in fact.
driden91
Cacti User
Posts: 52
Joined: Fri Jan 20, 2006 10:38 am

Post by driden91 »

hello

any idea ?

regards
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

It would not be officially supported even if it did work.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
driden91
Cacti User
Posts: 52
Joined: Fri Jan 20, 2006 10:38 am

Post by driden91 »

TheWitness wrote:It would not be officially supported even if it did work.

TheWitness
hello, thank for the reply.

So what solution exists to do this?

thank in advance
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Before, I can start on any new features, the 0.8.7c release needs to be done.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest