CloudComputingA1
所属分类:云计算
开发工具:Python
文件大小:1151KB
下载次数:0
上传日期:2022-04-19 23:44:29
上 传 者:
sh-1993
说明: 云计算A1,,
(CloudComputingA1,,)
文件列表:
ECE1779-A2.pdf (226210, 2022-04-20)
clear.sh (122, 2022-04-20)
src (0, 2022-04-20)
src\app (0, 2022-04-20)
src\app\__init__.py (186, 2022-04-20)
src\app\cache_utils.py (1338, 2022-04-20)
src\app\config.py (203, 2022-04-20)
src\app\db_connection.py (491, 2022-04-20)
src\app\image_utils.py (3944, 2022-04-20)
src\app\plot_utils.py (1750, 2022-04-20)
src\app\routes.py (11599, 2022-04-20)
src\app\static (0, 2022-04-20)
src\app\static\core-style.css (1854, 2022-04-20)
src\app\static\images (0, 2022-04-20)
src\app\static\images\.pdf (967501, 2022-04-20)
src\app\templates (0, 2022-04-20)
src\app\templates\add_key.html (3183, 2022-04-20)
src\app\templates\cache_stats.html (2272, 2022-04-20)
src\app\templates\home.html (340, 2022-04-20)
src\app\templates\key_store.html (713, 2022-04-20)
src\app\templates\memcache_params.html (3016, 2022-04-20)
src\app\templates\show_image.html (920, 2022-04-20)
src\app\templates\top_bar.html (266, 2022-04-20)
src\contrib.JPG (66137, 2022-04-20)
src\database (0, 2022-04-20)
src\database\ImageStore.sql (635, 2022-04-20)
src\memcache_app (0, 2022-04-20)
src\memcache_app\__init__.py (2068, 2022-04-20)
src\memcache_app\config.py (151, 2022-04-20)
src\memcache_app\constants.py (52, 2022-04-20)
src\memcache_app\memcache.py (6054, 2022-04-20)
src\memcache_app\memcache_rest.py (3861, 2022-04-20)
src\run.py (126, 2022-04-20)
src\run_memcache.py (137, 2022-04-20)
src\wsgi_app.py (68, 2022-04-20)
src\wsgi_memcache.py (86, 2022-04-20)
... ...
# CloudComputingA1
Assignment 1 for ECE 1779
## Group Contributions
![group_contributions](https://github.com/Josh-Abraham/CloudComputingA1/blob/main/src/contrib.JPG?raw=true)
## Project Architecture
### 2 Flask applications:
1. `src/app`
The `app` runs on port `5000` and is the exposed UI.
2. `src/memcache_app`
The `memcache_app` runs on port `5001` and is used internally by the `app` holding the memory cache of the system.
### Database
A local mysql database is used along side this system
## Project Description
The project is used to store images with an image key store in your local file system. The database is used to store the references between the key and the file location
The memcache is used to store the most recently searched images within the system. The cache stores the key and the image in Base***. The memcache supports LRU and RR methods
The UI is used to navigate the system and do things like: add images, list keys, get images by key, reset memcache, and view memcache statistics
## Project Usage
To use this project you need to have `Flask, gunicorn, cachetools, mysql.connector, matplotlib.figure`
You also need to have mysql installed, and then run the SQL commands in `/database/ImageStore.sql`
To run the project move the `start.sh` file up one level to the parent directory
Then run `./start.sh` to start both applications
近期下载者:
相关文件:
收藏者: