terça-feira, 10 de fevereiro de 2015

First Live Test (Encanas)

First live test was made on the 7th of February.

Arquitecture:

-1 EventViewer
-1 Eventpic Server
-1 Raspberry

First approach:

Raspberry has been installed with wheezy.
-Apache, local http server
-Mysql, local database
-Eventpic Server

Raspberry was installed to receive all the information from the clients and store the images from them.
EventViewer uses the WLAN connection available on Encanas to connect to the raspberry to retrieve the photos.


Problems:

1 - Backoffice needs to have thumbnails from the pictures. These thumbnails are generated using ImageMagik when a pictures is uploaded.
When a pictures was uploaded, raspberry needed at least 5 seconds to convert each image. Since raspberry only has 1 CPU core, the system was hogged and the Eventviewer was unable to retrieve images from it

2 - When a client uploaded the image, the Eventpic server was unable to reply to the requests from the Application, leaving the Auto Configuration feature completely useless. There were pictures taken that weren't sent to the server, rendering the service unuseable.

3 - By analyzing this situation, I came to the conclusion that the raspberry stopped answering for requests since the processing power we were requesting, was clearly higher than the one provided by raspberry.

Temporary Solution:

1 - Stopped converting the thumbnails

2 - Redirect the requests to a more powerful server

3 - Replace raspberry by other machine


Decision made:

-I've decided to keep raspberry as eventpic server and background image + image button server.
-Remove Mysql from raspberry
-Decrease the usage of the WLAN connection by caching all the configuration
-Change Eventview to use cache

Sem comentários:

Enviar um comentário