Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webscrape parallel requests problem #8

Open
gilesknap opened this issue Mar 19, 2022 · 1 comment
Open

Webscrape parallel requests problem #8

gilesknap opened this issue Mar 19, 2022 · 1 comment

Comments

@gilesknap
Copy link
Owner

My PoE switch cannot cope with MAAS interacting with two machines simultaneously. We are interacting with a single instance of the switch's Web GUI so this is not a surprise.

Possible Fixes -

  • use a critical section to only allow one interaction at a time
  • launch an instance of the GUI for each device controlled.
@gilesknap
Copy link
Owner Author

in fact it can cope with parallel queries.

│device: GS308EP-pi6 command: query                                                                │
│device: GS308EP-pi7 command: query                                                                │
│device: GS308EP-pi5 command: query                                                                │
│response: status : stopped                                                                        │
│192.168.0.10 - - [19/Mar/2022 19:36:34] "GET /maaspower/GS308EP-pi6/query HTTP/1.1" 200 -         │
│response: status : running                                                                        │
│192.168.0.10 - - [19/Mar/2022 19:36:34] "GET /maaspower/GS308EP-pi7/query HTTP/1.1" 200 -         │
│response: status : running                                                                        │
│192.168.0.10 - - [19/Mar/2022 19:36:34] "GET /maaspower/GS308EP-pi5/query HTTP/1.1" 200 -         │
│       

But I cannot believe that a parallel off or on would work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant