Hi Patrick,
> Dirk Reiners wrote:
>
>> Hi Patrick,
>>
>>Patrick Hartling wrote:
>>
>>>Andreas Zieringer wrote:
>>>
>>>>Hi Patrick,
>>>>
>>>>looks like a bug.
>>>
>>>In OpenSG or in my code?
>>>
>>>
>>>>Running the cluster servers all the time is not a good
>>>>idea.
>>>
>>>Why is that?
>>>
>>>
>>>>Better run a simple program (we use a minimal webserver service)
>>>>which starts the cluster server. On disconnection exit the cluster server.
>>>
>>>I could do that, but I would like to understand why adding that complexity
>>>is necessary first. Is it a resource usage issue, a design limitation of
>>>OpenSG, or something else?
>>
>>Getting RefCounting and full resource cleanup to work correctly in all cases
>>in
>>the cluster is not trivial, and depending on it (in addition to the OpenGL
>>driver being nice about cleaning up and not leaking anything anywhere)
>>doesn't
>>seem to be worth the effort compared to just restarting the servers after an
>>app
>>ends. Is it really a complication to start an auto-restart script instead of
>>just a server process?
>
>
> I am not sure what you mean by "auto-restart script" in this context. As I
> see it, I have two options:
>
> 1. Use a single server-side process that shows and hides its graphics
> window when the client connects and disconnects respectively.
just write a shell script with a endless loop something like this:
#!/bin/sh
while [ 1==1 ]; do
testClusterServer -e $*
done
with the -e option the clusterServer exists on disconnection.
> 2. Use two server-side process: an OpenSG cluster server process and
> another that fork(2)'s and kill(2)'s that process when a client
> connects and disconnects respectively.
>
> Give that, it is a complication in the sense that it adds more code and more
> places for things to go wrong. If my intended use of OpenSG is not going to
> be supported, then that makes the decision to add that code clear.
if you want to do some more advanced things like changing the
clusterServer resolution layout whatever you have to write some kind of
service that starts the clusterServer with different parameters, if not
the shell script solution works fine.
Andreas
> -Patrick
>
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
--
VREC
Robert-Bosch-Straße 7
D-64293 Darmstadt
Tel. 06151-4921035
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users