AppScale / appscale-tools

A set of command-line tools that can be used to interact with AppScale.
Other
51 stars 49 forks source link

Log warning on deploy for unsupported queue rate options #747

Closed sjones4 closed 5 years ago

sjones4 commented 5 years ago

Log a warning when an application is deployed using unsupported rate options.

sjones4 commented 5 years ago

Merged changes from master to resolve conflict.

sjones4 commented 5 years ago

Daily build no. 6161 (hawkeye test failure not related to changes)

Demo showing successfull deployment (with warning) of python/java applications:

# 
# appscale status
----------------------------------------------------------------------------

AppScale is up. All 1 nodes are loaded

PROJECT ID         SERVICE ID    HTTP/HTTPS    APPSERVERS/PENDING    REQS. ENQUEUED/TOTAL    STATE
appscaledashboard  default       1080/1443     1/0                   0/3032                  Ready

View more about your AppScale deployment at http://192.168.100.202:1080/status
# 
# 
# cat guestbook/queue.yaml
queue:
- name: test
  bucket_size: 1
  max_concurrent_requests: 1
  rate: 0/s

# 
# 
# cat javabook/war/WEB-INF/queue.xml
<queue-entries>
  <queue>
    <name>test</name>
    <bucket-size>1</bucket-size>
    <max-concurrent-requests>1</max-concurrent-requests>
    <rate>0/s</rate>
  </queue>
</queue-entries>

# 
# 
# appscale deploy guestbook
Tarring application
Copying over application
Deploying service default for guestbook
Please wait for your app to start serving.
Your app can be reached at the following URL: http://192.168.100.202:8080
Updating indexes
Updating queues
Queue configuration uses unsupported rate options (bucket size or max concurrent requests)
# 
# 
# appscale deploy javabook/war
AppScale did not find the correct SDK jar versions in your app. The current supported SDK version is 1.8.4.
Tarring application
Copying over application
Deploying service default for javabook
Please wait for your app to start serving.
Your app can be reached at the following URL: http://192.168.100.202:8081
Updating indexes
Updating queues
Queue configuration uses unsupported rate options (bucket size or max concurrent requests)
# 
# 
# appscale status
----------------------------------------------------------------------------

AppScale is up. All 1 nodes are loaded

PROJECT ID         SERVICE ID    HTTP/HTTPS    APPSERVERS/PENDING    REQS. ENQUEUED/TOTAL    STATE
appscaledashboard  default       1080/1443     1/0                   0/24                    Ready
javabook           default       8081/4381     1/0                   0/0                     Ready
guestbook          default       8080/4380     1/0                   0/0                     Ready

View more about your AppScale deployment at http://192.168.100.202:1080/status
# 
# 

Note the Queue configuration uses unsupported rate options (bucket size or max concurrent requests) warning message which is shown in red text.