documentation incomplete: Server.xact_think

Bug #899150 reported by Gerrit Hohl on 2011-12-02
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

In the file workloads/include/ the property xact_think of the Server class is used in line 19. But it isn't mentioned in the Reference Manual > PGL > Types page.

Server S = {
     kind = "PolyMix-4-srv";

     contents = [ cntImage: 65%, cntHTML: 15%, cntDownload: 0.5%, cntOther ];
     direct_access = [ cntHTML, cntDownload, cntOther ];

     xact_think = norm(2.5sec, 1sec);
     pconn_use_lmt = zipf(16);
     idle_pconn_tout = 15sec;
     abort_probe = 0.1%;

     addresses = serverAddrs(asPolyMix4, TheBench);
     http_versions = [ "1.0" ]; // newer agents use HTTP/1.1 by default

As you programmed the web polygraph in C++ I assume that you maybe used some kind of object inheritance. Maybe the Agent class - which has a xact_think property - is the superclass of the Server class.

If that is the case, the documentation also lacks the inheritance dependencies.

Gerrit Hohl (g-hohl) wrote :

Same goes for Server.pconn_use_lmt

Gerrit Hohl (g-hohl) wrote :

And also for Server.abort_prob

Gerrit Hohl (g-hohl) wrote :

Seems like Robot also is a subclass of Agent.

Yes, Robot and Server are inherited from Agent. So these fields are documented. But the class hierarchy documentation is missing.

Alex Rousskov (rousskov) wrote :

Actually, the fact that Server and Robot are derived from Agent is documented as the first five words of the Server and Robot documentation: "Derived from the Agent type, ..."

The Agent documentation states the same thing, with even more detail: "Agent is a base type for PGL robots, servers, and proxies. In other words, agents have properties common to those three types."

Granted, we can show and explain the dependency better.

Changed in polygraph:
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers