Coder Social home page Coder Social logo

vmware-archive / xenon Goto Github PK

View Code? Open in Web Editor NEW
225.0 59.0 97.0 50.79 MB

Xenon - Decentralized Control Plane Framework

License: Other

Makefile 0.02% Java 83.33% JavaScript 6.97% HTML 1.38% CSS 1.60% Shell 0.36% TypeScript 6.31% Lua 0.02% Dockerfile 0.01%

xenon's Introduction

WARNING: Xenon is no longer actively maintained by VMware.

VMware has made the difficult decision to stop driving this project and therefore we will no longer actively respond to issues or pull requests. If you would like to take over maintaining this project independently from VMware, please let us know so we can add a link to your forked project here.

Thank You.


VMware's Xenon project is not related to any crypto currencies - please note that any crypto currencies claiming to be related to this project or to VMware in general are likely fraudulent


1.0 Brief Introduction to Xenon Build Status

1.1 Xenon Highlights

Xenon is a framework for writing small REST-based services. (Some people call them microservices.) The runtime is implemented in Java and acts as the host for the lightweight, asynchronous services. The programming model is language agnostic (does not rely on Java specific constructs) so implementations in other languages are encouraged. The services can run on a set of distributed nodes. Xenon provides replication, synchronization, ordering, and consistency for the state of the services. Because of the distributed nature of Xenon, the services scale well and are highly available.

Xenon is a "batteries included" framework. Unlike some frameworks that provide just consistent data replication or just a microservice framework, Xenon provides both. Xenon services have REST-based APIs and are backed by a consistent, replicated document store.

Each service has less than 500 bytes of overhead and can be paused/resumed, making Xenon able to host millions of service instances even on a memory constrained environment.

Service authors annotate their services with various service options, acting as requirements on the runtime, and the framework implements the appropriate algorithms to enforce them. The runtime exposes each service with a URI and provides utility services per instance, for stats, reflection, subscriptions and configuration. A built-in load balancer routes client requests between nodes, according to service options and plug-able node selection algorithms. Xenon supports multiple, independent node groups, maintaining node group state using a scalable gossip scheme.

A powerful index service, invoked as part of the I/O pipeline for persisted services, provides a multi version document store with a rich query language.

High availability and scale-out is enabled through the use of a consensus and replication algorithm and is also integrated in the I/O processing.

1.2 What can Xenon be used for?

The lightweight runtime enables the creation of highly available and scalable applications in the form of cooperating light weight services. The operation model for a cluster of Xenon nodes is the same for both on premise, and service deployments.

The photon controller project makes heavy use of Xenon to build a scalable and highly available Infrastructure-as-a-Service fabric, composed of stateful services, responsible for configuration (desired state), work flows (finite state machine tasks), grooming and scheduling logic. Xenon is also used by several teams building new products, services and features, within VMware.

1.3 Learning More

For a more detailed description of Xenon, keep reading this document.

For more technical details including tutorials, please refer to the wiki.

Various code samples are in the xenon-samples directory.

1.4 Reporting Issues

Xenon uses a public pivotal tracker project for tracking and reporting issues: https://www.pivotaltracker.com/n/projects/1471320

2.0 Detailed Introduction to Xenon

Xenon is a framework for writing small REST-based services. (Some people call them microservices.) It supports a long list of features, but let’s step back a moment and take it a step at a time.

2.1 What is a Xenon service?

There are multiple definitions of "services", so let's define what we mean by a Xenon service. (For now, we’ll assume we’re talking about Xenon running on a single host--we'll get to using multiple hosts in a moment.)

A single Xenon service implements a REST-based API for a single URI endpoint. For example, you might have a service running on:

https://myhost.example.com/example/service

You have a lot of choices in how you implement the service, but a few things are true:

  1. The service can support any of the standard REST operations: GET, POST, PUT, PATCH, DELETE

  2. This service has a document associated with it. If you do a GET on the service, you’ll see the document. In most cases, the document is represented in JSON. There are a few standard JSON fields that every document has, such as the the "kind" of document, the version, the time it was last updated, etc.

  3. Your service may have business logic associated with it. Perhaps when you do a POST, it creates a new VM, and a PATCH will modify the VM.

  4. A service may have its state persisted on disk (a "stateful" service) or it may be generated on the fly (a “stateless” service). Persisted services can have an optional expiration time, after which they are removed from the datastore.

  5. All services can communicate with all other services by using the same APIs that a client will use. Within a single host, communication is optimized (no need to use the network). API calls from clients or services are nearly identical and treated the same way. This makes for a very consistent communication pattern.

  6. For stateful services, only one modification may happen at a time: modifications to a statefule service are serialized, while reads from a service can be made in parallel. If two modifications are attempted in parallel, there will be a conflict. One will succeed, and the other will receive an error. (Xenon is flexible, and allows you to disable this if you really want to.)

2.2 Factory Services

How are services made? In general, a Xenon host will be started with a number of "factory services". These are services that can create other services. For instance, you might have a service for creating VMs:

https://myhost.example.com/vms

If a client POSTs a valid document describing a VM to that service, a new service will be created and (presumably) the new VM will also be created. Typically the service will be created with a unique random ID (a UUID):

https://myhost.example.com/vms/bb15980c-166e-11e6-b6ba-3e1d05defe78

The factory service is stateless. It does not explicitly keep track of all the services that were made. Clients can do a GET to the factory service to find all of the services of that type. Internally, the factory service just queries the underlying document store to find all of them. These queries are implemented efficiently on top of a Lucene index.

2.3 Task Services: Just for business logic

Some services do not need long-term persistence, but just need to accomplish a short-lived task. For example, you might have a task that finds all disks that are running out of space and send a message to a Slack channel. Interesting and valuable, but ephemeral.

Task services are just like any other services, but they take advantage of two features of Xenon:

  1. Task services use the ability to communicate with services: they communicate to themselves. As a task proceeds, it records its state by using its own API to update itself. For instance:
  • A client POSTs to a task factory and the task service is made
  • The task service does something (search for disks, to continue above example)
  • The task services sends a PATCH to itself to update its state
  • When the task receives the PATCH, it triggers the next step: send message to Slack
  • When the task is done, it sends a PATCH to itself to mark task as done: any client can see that it’s done by doing a GET to the task service.
  1. Task services are asynchronous: every step happens as part of asynchronously responding to the initial POST or the subsequent PATCHs.

The mechanisms used to implement task services are identical as those for other services. As a result, tasks are transparent (clients can see progress of the tasks) and encourages asynchronous implementations, which scale well.

2.4 What can you do with Xenon services?

Just about anything you want. Think about it this way: Xenon encourages you to build a system as a set of small services that have REST-based APIs and can communicate with each other. People have built a wide variety of systems on top of Xenon including an IaaS system, Photon Controller.

2.5 Authentication & Authorization

Xenon provides both authentication and authorization. Today it has a username/password mechanism for authentication, but allows for it to be extended (via the addition of appropriate services). Users can be given access to all documents or a subset of documents, depending on how Xenon is configured. All configuration of users and permissions is via Xenon services.

2.6 How does Xenon work when there are multiple hosts?

Xenon is architected to work well when there are multiple Xenon hosts in a cluster. Systems that build on top of Xenon have choices in how they want to build their system.

Note that each of these configuration choices is done per-service: different services can have different ownership, replication, and consistency configuration, depending on their needs.

Ownership: In cases where it matters, developers can choose to have Xenon select a single owner for a service. Xenon calls these "owner-selected" services. The owner is chosen automatically using a consitent hashing algorithm and it will be updated if Xenon hosts are added or removed from the system. When a host is added or removed, the ownership may be updated immediately or as-needed, but to users cannot tell the difference: whenever they need to access a document, the latest version is provided. Users never need to be aware of the ownership of the document: this is an internal detail that Xenon manages.

Replication: Xenon replicates all service documents to other nodes. Developers can choose between symmetric replication (all nodes have a copy of the data) or asymmetric replication (some subset has it). The choice between these two is between simplicity and performance. For operations that modify a services, the developer can choose to either wait for all nodes to have the same data, or they can for a smaller number, called the quorum, to have the data. By default, the quorum is a majority of nodes.

Consistency: Xenon allows developers to choose between strongly consistent or eventually consistent, but is most commonly strongly consistent. Strongly consistent services use owner-selection (the service document is managed by the owner) and replication.

Node failures: If a node fails, other Xenon nodes continue to run. If a Xenon service was configured to require all nodes to have a replica of the data, the service cannot be updated until the missing node is returned to service or the quorum size is reduced to match the number of nodes. When a node returns to service, it is updated with changes that happened in its absence. This update process is called synchronization.

2.5 Tracing operations with OpenTracing

Xenon ships with an inbuilt intracluster tracing mechanism as well as optional support for OpenTracing tracers.

Configure a tracer by providing an io.opentracing.Tracer instance to your ServiceHost or by setting the environment variable XENON_TRACER_FACTORY_PROVIDER, plus any additional settings needed by your chosen implementation.

2.5.1 Tracing configuration

Core settings

Environment variable effect
XENON_TRACER_FACTORY_PROVIDER (Required) Set to select a tracer: zipkin or jaeger

Be sure to include the appropriate implementation JAR files in your builds: they are marked optional by xenon-common.

Zipkin settings

Environment variable effect
ZIPKIN_SERVICE_NAME (Required) Set to configure the opentracing service name for the process.
ZIPKIN_SAMPLERATE Set to a float to control what % of traces are sampled.
ZIPKIN_URL (Required) Set to direct the ZIPKIN reporter target URL. e.g. http://host/apis/v1/spans

Add the following to your project dependencies:

<dependency>
  <groupId>io.opentracing.brave</groupId>
  <artifactId>brave-opentracing</artifactId>
  <version>0.22.1</version>
</dependency>
<dependency>
  <groupId>io.zipkin.reporter2</groupId>
  <artifactId>zipkin-sender-okhttp3</artifactId>
  <version>2.0.2</version>
</dependency>
<dependency>
  <groupId>io.zipkin.reporter2</groupId>
  <artifactId>zipkin-sender-urlconnection</artifactId>
  <version>2.0.2</version>
</dependency>

Jaeger settings

See https://github.com/jaegertracing/jaeger-client-java/blob/master/jaeger-core/README.md for the complete list of variables Jaeger's Java client supports.

Environment variable effect
JAEGER_SERVICE_NAME (Required). Set the opentracing service name for Jaeger reporting
JAEGER_AGENT_HOST Set the host to send spans to
JAEGER_SAMPLER_TYPE What type of sampler e.g. const
JAEGER_SAMPLER_PARAM Sampler parameter e.g. 1

Add the following to your project dependencies:

<dependency>
  <groupId>com.uber.jaeger</groupId>
  <artifactId>jaeger-core</artifactId>
  <version>0.21.0</version>
</dependency>

Tracing Operations

Anything handled by ServiceHost.handleRequest or ServiceHost.sendRequest will be automatically assigned a span with relevant metadata from the Operation. The current span can be accessed via host.getTracer().activeSpan()

  • see the OpenTracing Java API for more details.

Additional metadata can be added to the existing span, or if you have an operation, or more generally any substantial work that should be tracked separately, an additional span can be tracked like so:

try (ActiveSpan span = host.getTracer().buildSpan($"OPERATION").startActive()) {
    // Tracked code
}

If, as is common in Xenon, your work will be run in a thread via the ServiceHost.run call, the current span at the time of submission will be carried over as a closure into the context of the run callback:

try (ActiveSpan span = host.getTracer().buildSpan($"OPERATION").startActive()) {
    span.setTag(Tags.COMPONENT.getKey(), "crypto");
    host.run(() -> {
        // Tracked code
    }
}

You can access the span in the tracked code too:

try (ActiveSpan span = host.getTracer().buildSpan($"OPERATION").startActive()) {
    host.run(() -> {
	host.getTracer().activeSpan().setTag(Tags.COMPONENT.getKey(), "crypto");
        // Tracked code
    }
}

If you are writing your own deferral mechanism, see the implementation of e.g. ServiceHost.run() for examples of context hand-off across threads. (Or see the OpenTracing Java API docs).

Spans can be annotated with additional metadata such as debugging information via the Span.log family of APIs. The recommendation when doing that is not to include PII or customer data: doing so may significantly increase your operational burden around management of the tracing infrastructure : but ultimately Xenon itself does not care, and you can do whatever you like. Xenon won't log such data to OpenTracing spans.

3.0 Getting started

3.1 Building the code

A detailed list of pre-requisite tools can be found in the developer guide. Xenon uses Maven for building.

Once you have installed all the pre-requisites from the root of the repository execute the following Maven command:

  mvn clean test

The above command will compile the code, run checkstyle, and run unit-tests.

3.2 Editing the code

The team uses Eclipse or IntelliJ. Formatting style settings for both these editors can be found in the contrib folder.

4.0 Contributing

We welcome contributions and help with Xenon! If you wish to contribute code and you have not signed our contributor license agreement (CLA), our bot will update the issue when you open a Pull Request. For any questions about the CLA process, please refer to our FAQ.

4.1.1 Pull Request Guide

TBD

5.0 Related Projects

xenon's People

Contributors

abathla avatar agovindaraju avatar ankurvsoni avatar asafka avatar cjqhenry14 avatar cshrisha avatar curtis628 avatar dannyh-vmw avatar eivanova avatar gadagip avatar georgechrysanthakopoulos avatar glechev avatar hongxingl avatar igorstoyanov avatar janislavjankov avatar jcali avatar jim-cooley avatar jvassev avatar mcovmw avatar molteanu avatar nick-stephen avatar pankaj-lakhina avatar pmitrov avatar rohitj23 avatar schadr avatar sdiwan avatar sufiand avatar tgeorgiev avatar ttddyy avatar ylui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xenon's Issues

question about upgrading services written to use the Xenon framework

Question for y'all - was reading through https://github.com/vmware/xenon/wiki/Programming-Model, https://github.com/vmware/xenon/wiki/Side-by-Side-Upgrade, and https://github.com/vmware/xenon/wiki/Highly-Available-Task-Tutorial - was trying to understand how one might leverage Xenon to do an upgrade to a highly available distributed system.

It looks like the the mechanism would be to write code to handle the specific sequencing, with the idea that what you're upgrading from and two are two running, discrete instances of the service and you're primarily involved in migrating data between them with something like https://github.com/vmware/xenon/blob/master/xenon-common/src/main/java/com/vmware/xenon/services/common/MigrationTaskService.java, but it also seems to expose some of the deeper concepts into the request being make declaratively in JSON (the querySpec bit for partial data migration).

Is the idea that when doing an upgrade you'd basically be doing through a coordinated series of REST API requests to Xenon, creating instances of the new versions and then migrating?

Is there an upgrade service concept in the code, or would something external need to also be aware of any HA constructs and migrating data with those as well?

Support jCasbin as the authorization backend

jCasbin is an authorization library that supports models like ACL, RBAC, ABAC.

Related to RBAC, casbin has several advantages:

  1. roles can be cascaded, aka roles can have roles.
  2. support resource roles, so users have their roles and resource have their roles too. role = group here.
  3. the permission assignments (or policy in casbin's language) can be persisted in files or database.
  4. multiple models like ACL, BLP, RBAC, ABAC, RESTful are supported.

And you can even customize your own access control model, for example, mix RBAC and ABAC together by using roles and attributes at the same time. It's very flexible. BTW, https://github.com/vmware/dispatch already uses the Golang's Casbin. And jCasbin keeps exactly the same API and advantages as Golang Casbin.

I saw there's an Authentication and Authorization Design, it discusses about roles on users, roles on resources, tenants, RESTful. And I think jCasbin is a good choice for these requirements. And jCasbin provides more than that, including regex match, three kinds of key match, RBAC role hierarchy, ABAC, etc. What do you think? Thanks.

optimizations, bug fixes from private fork

i am no loner tied to xenon main line but i will occasionally open Issues for things i have fixed/improved on my xenon variant:

  1. NodeGroupService merge logic has a flaw: it ignores update from remote node, if it has marked it UNAVAILABLE more recently than it, itself report available. this can happen due to clock drift and has a trivial fix: do this in the merge function:

the key is the new remoteEntry.equals check, which will accept the change if the reporting node is the owner for that NodeStatus entry

            if (remoteEntry.documentVersion == currentEntry.documentVersion && needsUpdate) {
                // pick update with most recent time, even if that is prone to drift and jitter
                // between nodes, except, if the remote entry is the owner for this node status
                if (!remoteEntry.id.equals(remotePeerState.documentOwner)
                        && remoteEntry.documentUpdateTimeMicros < currentEntry.documentUpdateTimeMicros) {
                    logWarning(
                            "Ignoring update for %s from peer %s. Local status: %s, remote status: %s",
                            remoteEntry.id, remotePeerState.documentOwner, currentEntry.status,
                            remoteEntry.status);
                    continue;
                }
            }
  1. Change the ServiceHost executors to use async mode for fork join pool. Gives a small perf boost (5->10%)

  2. Instead of using pragmas to express NO_INDEX_UPDATE or FORWARDING_DISABLED, i expanded OperationOption and added INDEXING_DISABLED, FORWARDING_DISABLED and then modified all places that check for the pragmas to also check for options. This removes lots of alllocation for operations that will be in the same host anyway (during service stop for example)

  3. Factory service minor change to NOT forward, ever, for a direct client POST, if the child service does NOT have owner selection, but is just replicated instead. This works well for pure replication services, and an external load balancer, that already load balanced to different nodes

  4. new ServiceOption.CUSTOM_INSTRUMENTATION. 10% boost in throughput in stateful services that do not need the core operation tracking stats, but DO need custom stats. It requires changes all over, but udner the covers, and its backwards compatible (since it is a new option). AVAILABLE, CREATE_COUNT, etc all core stats use the CUSTOM_INSTRUMENTATION option so they dont force stats on all services, by accident, which is what happens today

  5. removed web socket support. Not used now that we have SSE

  6. reduction in allocations in FactoryService, by removing the PARENT replication header, just using a parentUri field in Operation.remoteCOntext

  7. moved SSE handler fields to Operation.remoteContent so we dont bloat the size of ALL operations, even just internal ones!!

this is all just fyi. i cant create pull requests anymore since my version of xenon has diverged (faster, smaller, not backwards compatible due to method removals and renames).

I still pull manually changes from main xenon, but i cant push back my changes.

fyi @sufiand @asafka @gbelur @toliaqat @ttddyy

you can leave this Issue open, and i can post updates on occasion. Feel free to create pivotal tracker items for individual items I report

Xenon 2.0 suggestions

(feel free to close this and track in Tracker, there might be an item on this already)'

Here some suggestions for next (possibly backwards incompatible) version of Xenon:

  1. Move to and require Java 9.0. Lots of perf benefits (reduction in memory due to new handling of char[] arrays that back strings, others). Also, lots of new syntactic sugar to eliminate for() loops.
    Ahead of time compilation nice bonus for embedded systems that need to faster boot up
  2. Eliminate Netty. Use new, asynchronous Http/2, web socket, server push HTTP client, built in Java!
  3. Add examples using Kotlin. Kotlin runs inside the JVM so will just work with existing Xenon JARs. We just need to show samples. Also, it becomes a viable language for native (no JVM) xenon!

we can meet in person, next time the team is all in Seattle, to discuss this. Or on email.

fyi @asafka @toliaqat @ttddyy

Problem building xenon-common with maven wrapper

Started with a fresh install of Ubuntu Linux (14.04.5 LTS), installed Java 8 ((build 1.8.0_111-b14)) and git (just to download the xenon source code).

Using the maven wrapper to build the project, but tests fail in the middle of xenon-common with the message:
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.3:exec (go-get) on project xenon-common: Command execution failed. Cannot run program "make" (in directory "/home/ubuntu/projects/xenon/xenon-common/src/main/go"): error=2, No such file or directory -> [Help 1]

Indeed, the make file in xenon-common/src/go is named 'Makefile' - though in creating a copy with that name and the same permissions yields this error.

VRealize 7.3

I have this issue

com.vmware.xenon.common.Operation.fail(Operation.java:1224)"

TestLuceneDocumentIndexService Unit Test Failing

Trying to build against commit: 6dcb4e2
Run: mvn clean test
Produces unit test failure below.

Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T09:41:47-07:00)
Maven home: /usr/local/Cellar/maven/3.3.9/libexec
Java version: 1.8.0_65, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.11.1", arch: "x86_64", family: "mac"

-------------------------------------------------------------------------------
Test set: com.vmware.dcp.services.common.TestLuceneDocumentIndexService
-------------------------------------------------------------------------------
Tests run: 11, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 7.987 sec <<< FAILURE! - in com.vmware.dcp.services.common.TestLuceneDocumentIndexService
corruptIndexWhileRunning(com.vmware.dcp.services.common.TestLuceneDocumentIndexService)  Time elapsed: 0.148 sec  <<< ERROR!
org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed
    at org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:718)
    at org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:732)
    at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1359)
    at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1142)
    at com.vmware.dcp.services.common.LuceneDocumentIndexService.addDocumentToIndex(LuceneDocumentIndexService.java:1670)
    at com.vmware.dcp.services.common.LuceneDocumentIndexService.handleDocumentPostOrDelete(LuceneDocumentIndexService.java:1274)
    at com.vmware.dcp.services.common.LuceneDocumentIndexService.lambda$handleRequest$158(LuceneDocumentIndexService.java:481)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

Regression due to ODL changes: warning on PATCHs to subscriptions

After recent ODL changes i start noticing the following messages (they happen every time my tasks are created through the xenon task factory, which subscribes to each child it creates. this is all default behavior)

ODL conflict: retrying PATCH (1537 null) on /core/callbacks/mgmt-shell-command-tasks-b1295a413582890555b731cc63e10-b1295a413582890555b731cc645e0]

they did not use to happen. its almost like we are trying to ressurect in memory only tasks, which have, by design, stopped/expired.

i dont have any other details but i suggest you look for the message in Jenkins logs, during our tests and see if you see anything ODL related on "/callback" links

@asafka @ttddyy

service is gone after a new host joins the node group

I have NodeA and NodeC.
NodeA and NodeC has the CityService.
CityService has ServiceOption.Duplication and ServiceOption.Owner.
I send a POST to NodeA to create city1. city1 is in NodeA only.
I then join NodeC with NodeA.
city1 is gone. /samples/cities on NodeA still show an entry for city1. But /samples/cities/city1 returns 404.
That looks like a bug.

vra 7.3 stuck on spinning wheel

Not sure this is the right location, asking :) Within the Admiral interface in vRA 7.3, it recently stopped working and stuck on a spinning wheel. VCH hosts aren't being shown. I restarted the xenon service within VAMI and reported the cluster (we have two nodes). Any ideas?

remove use of String.replace() in code, replace with implementation similar to StringUtils.replace in apache commons (or Java9)

recently discovered (from an article) that string.replace() uses regular expressions under the covers which is incredibly wasteful for short strings (anything less than a few K which is 99.999 of all xenon strings).

instead, java 9 has fixed this, but in our code we can add a Utils.replace(string, string) implementation using the java9/apache commons approach.

i searched and we dont use string.replace() widely but we do use it in some critical paths.

fyi @ttddyy @toliaqat

feel free to close this and open a Tracker issue instead

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.