Giter VIP home page Giter VIP logo

zenpacks.daviswr.osx.server.caching's People

Contributors

daviswr avatar

Stargazers

 avatar  avatar

Watchers

 avatar

zenpacks.daviswr.osx.server.caching's Issues

macOS High Sierra compatibility

The Caching service in High Sierra is no longer controlled by serveradmin, requiring modeler and data sources to be updated.

Add peer server modeling

Model peer caching servers as components from serveradmin fullstatus caching output.

Example

caching:Peers:_array_index:0:address = "aaa.bbb.ccc.ddd"
caching:Peers:_array_index:0:port = 49094
caching:Peers:_array_index:0:details:capabilities:ur = yes
caching:Peers:_array_index:0:details:capabilities:sc = yes
caching:Peers:_array_index:0:details:capabilities:pc = no
caching:Peers:_array_index:0:details:capabilities:im = no
caching:Peers:_array_index:0:details:capabilities:ns = yes
caching:Peers:_array_index:0:details:capabilities:query-parameters = yes
caching:Peers:_array_index:0:details:cache-size = 900000000000
caching:Peers:_array_index:0:details:ac-power = yes
caching:Peers:_array_index:0:details:is-portable = no
caching:Peers:_array_index:0:details:local-network:_array_index:0:speed = 1000
caching:Peers:_array_index:0:details:local-network:_array_index:0:wired = yes
caching:Peers:_array_index:0:healthy = yes
caching:Peers:_array_index:0:version = "161"
caching:Peers:_array_index:0:friendly = yes
caching:Peers:_array_index:0:guid = "9B9CDED4-F70C-4910-B7D4-11D1530AD34D" 

Example without peers

caching:Peers = _empty_array

Capability flags

  • pc - Personal Cache (iCloud)
  • im - Imports

Expanded error handling

/Library/Server/Caching/Logs/Debug.log:
2018-06-23 20:33:57.742 Request for registration from https://lcdn-registration.apple.com/lcdn/register failed: HTTP response 400, body "INVALID_DEVICE"

yields

caching:StartupStatus = "FAILED"
caching:RegistrationError = "INVALID_DEVICE"
caching:RegistrationStatus = -1
caching:CacheStatus = "OK"
caching:state = "STOPPED"

Server 5.2 on 10.11.6

Add process monitoring

Create OS Process classes for

  • servermgr_caching
  • /Applications/Server.app/Contents/ServerRoot/usr/libexec/AssetCache/AssetCache

Cache hit rate

$ grep "Since server start" /Library/Server/Caching/Logs/Service.log | tail -1
2018-07-04 08:54:06.022 Since server start: 5.73 GB returned to clients, 5.45 GB stored from Internet, 0 bytes from peers; 0 bytes imported.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.