Open-source News

Linux Parallel CPU Bring-Up Shows Great Impact Bringing Up 1,920 Sapphire Rapids Cores

Phoronix - Mon, 02/06/2023 - 19:55
After the prior kernel patches had stalled in their review process, last week work was revived on x86_64 parallel CPU bring-up for the Linux kernel to help in booting the kernel faster on larger core count desktops and servers. The results have been promising and over the past few days more test results have flowed in along with other positive commentary that will hopefully this time lead to the work ultimately getting upstreamed...

A Non-GNU Linux Distribution Built With LLVM & BSD Software Aims For Alpha Next Month

Phoronix - Mon, 02/06/2023 - 19:25
In development now for nearly two years is Chimera Linux as a "non-GNU" Linux distribution built with the LLVM Clang compiler, leveraging musl libc, and commonly relying on BSD user-space software components. After a lot of work on bringing up Chimera Linux as well as getting a Wayland-based deskttop going, the project is aiming for its alpha release within the next month...

Linux 6.3 To Support The IT87952E Found With Some Newer Desktop Motherboards

Phoronix - Mon, 02/06/2023 - 19:06
The Linux 6.3 kernel's IT87 driver is preparing support for the IT87952E super I/O controller that is used by some newer desktop motherboards and will now be able to enjoy hardware monitoring "HWMON" support...

Fedora 38 To Get Rid Of Its Flathub Filtering, Allowing Many More Apps On Fedora

Phoronix - Mon, 02/06/2023 - 18:59
The Fedora Engineering and Steering Committee recently signed off on the proposed "Unfiltered Flathub" feature that makes it easier to enjoy the full collection of software offered by Flatpak's Flathub service...

Wordsmith on the Linux command line with dict

opensource.com - Mon, 02/06/2023 - 16:00
Wordsmith on the Linux command line with dict dboth Mon, 02/06/2023 - 03:00

As a writer, I frequently need to determine the correct spelling or definition of words. I also need to use a thesaurus to find alternate words that may have a somewhat different connotation than the one I might otherwise use. Because I frequently use the Linux command line and text-mode tools to do much of my work, it makes sense to use a command line dictionary.

I really like using the command line for a number of reasons, the primary one being that it is more efficient for me. It is also far more comprehensive than any one or multiple physical paper dictionaries, could ever be. I have been using the Linux dict command for many years and I have come to depend on it.

Install dict on Linux

The dict program is not installed by default on Fedora, but it's easy to install. Here is how to install it on Fedora and similar programs:

$ sudo dnf install dictd

On Debian and similar programs, you must also install the dictionary definitions:

$ sudo apt install dictd dict-gcide

No additional configuration is required. The minimalistic /usr/share/doc/dictd/dict1.conf file specifies the remote server for the dictionary databases. This tool uses the Dictionary Server Protocol (DICT) on port 2628.

Use dict on Linux

In a terminal session as a non-root user, type dict to get a list of definitions from one or more dictionaries and the thesaurus. For example, look up the word memory this way.

$ dict memory | less 6 definitions found From The Collaborative International Dictionary of English v.0.48 [gcide]: Memory \Mem"o*ry\, n.; pl. {Memories}. [OE. memorie, OF. memoire, memorie, F. m['e]moire, L. memoria, fr. memor mindful; cf. mora delay. Cf. {Demur}, {Martyr}, {Memoir}, {Remember}.] [1913 Webster] 1. The faculty of the mind by which it retains the knowledge of previous thoughts, impressions, or events. [1913 Webster] Memory is the purveyor of reason. --Rambler. [1913 Webster] 2. The reach and positiveness with which a person can remember; the strength and trustworthiness of one's power to reach and represent or to recall the past; as, his memory was never wrong. [1913 Webster] From WordNet (r) 3.0 (2006) [wn]: memory n 1: something that is remembered; "search as he would, the memory was lost" 2: the cognitive processes whereby past experience is remembered; "he can do it from memory"; "he enjoyed remembering his father" [syn: {memory}, {remembering}] 3: the power of retaining and recalling past experience; "he had From Moby Thesaurus II by Grady Ward, 1.0 [moby-thesaurus]: 78 Moby Thesaurus words for "memory": RAM, anamnesis, anniversaries, archetypal pattern, archetype, awareness, celebrating, celebration, ceremony, cognizance, commemoration, consciousness, disk memory, dressing ship, From The Free On-line Dictionary of Computing (30 December 2018) [foldoc]: memory These days, usually used synonymously with {Random Access Memory} or {Read-Only Memory}, but in the general sense it can be any device that can hold {data} in {machine-readable} format. (1996-05-25) From Bouvier's Law Dictionary, Revised 6th Ed (1856) [bouvier]: MEMORY, TIME OF. According to the English common law, which has been altered by 2 & 3 Wm. IV., c. 71, the time of memory commenced from the reign of

I have cut large sections of this result to save space while leaving enough information to provide an idea of what typical results look like. You can also look up multi-word phrases by enclosing them in quotes, either double or single.

$ dict "air gapped"Dictionaries

The dict command uses several online dictionaries, including legal and technical ones. Dictionaries are also available for many languages. You can list the available dictionary databases as shown here:

$ dict -D | less Databases available: gcide The Collaborative International Dictionary of English v.0.48 wn WordNet (r) 3.0 (2006) moby-thesaurus Moby Thesaurus II by Grady Ward, 1.0 elements The Elements (07Nov00) vera V.E.R.A. -- Virtual Entity of Relevant Acronyms (February 2016) jargon The Jargon File (version 4.4.7, 29 Dec 2003) foldoc The Free On-line Dictionary of Computing (30 December 2018) easton Easton's 1897 Bible Dictionary hitchcock Hitchcock's Bible Names Dictionary (late 1800's) bouvier Bouvier's Law Dictionary, Revised 6th Ed (1856) devil The Devil's Dictionary (1881-1906) world02 CIA World Factbook 2002 gaz2k-counties U.S. Gazetteer Counties (2000) gaz2k-places U.S. Gazetteer Places (2000) gaz2k-zips U.S. Gazetteer Zip Code Tabulation Areas (2000) fd-hrv-eng Croatian-English FreeDict Dictionary ver. 0.1.2 fd-fin-por suomi-português FreeDict+WikDict dictionary ver. 2018.09.13 fd-fin-bul suomi-български език FreeDict+WikDict dictionary ver. 2018.09.13 fd-fra-bul français-български език FreeDict+WikDict dictionary ver. 2018.09.13 fd-deu-swe Deutsch-Svenska FreeDict+WikDict dictionary ver. 2018.09.13

More Linux resources Linux commands cheat sheet Advanced Linux commands cheat sheet Free online course: RHEL technical overview Linux networking cheat sheet SELinux cheat sheet Linux common commands cheat sheet What are Linux containers? Our latest Linux articles

You can specify individual dictionaries with the -d option:

$ dict -d gcideEndmost Dictum

Sometimes using words found in the thesaurus is not the best approach to writing as it can obfuscate your meaning. But I do find that the dict command can be immensely useful in choosing the best word for a specific meaning. It also ensures that the words I use are spelled correctly.

There's a dearth of information about dict. The URL http://www.dict.org/ provides only a web-based interface to the dictionaries. The man page covers syntax. But the command is a useful and fun command to have handy. I admit that after discovering the dict command I spent many hours of the day just trying different things to see what the result would be. I was the kid who read the encyclopedia and dictionary. Yes, I was that kid. In addition to being a useful tool when writing or reading, dict can also be a fun tool to satisfy a bit of curiosity.

The dict command on Linux is useful for writers to access a plethora of dictionaries and synonyms for their word choices.

Image by:

Original photo by jetheriot. Modified by Rikki Endsley. CC BY-SA 2.0.

Linux Command line What to read next This work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License. Register or Login to post a comment.

Reinvent your release strategy with an API gateway

opensource.com - Mon, 02/06/2023 - 16:00
Reinvent your release strategy with an API gateway iambobur Mon, 02/06/2023 - 03:00

One benefit of moving to an API-based architecture is that you can iterate quickly and deploy new changes to our services. There is also the concept of traffic and routing established with an API gateway for the modernized part of the architecture. API gateway provides stages to allow you to have multiple deployed APIs behind the same gateway and is capable of in-place updates with no downtime. Using an API gateway enables you to leverage the service's numerous API management features, such as authentication, rate throttling, observability, multiple API versioning, and stage deployment management (deploying an API in multiple stages such as dev, test, stage, and prod).

Open source API gateway (Apache APISIX and Traefik) and service mesh (Istio and Linkerd) solutions are capable of doing traffic splitting and implementing functionalities like canary release and blue green deployment. With canary testing, you can make a critical examination of a new release of an API by selecting only a small portion of your user base. 

What is a canary release?

A canary release introduces a new version of the API and flows a small percentage of the traffic to the canary. In API gateways, traffic splitting makes it possible to gradually shift or migrate traffic from one version of a target service to another. For example, a new version, v1.1, of a service can be deployed alongside the original, v1.0. Traffic shifting enables you to canary test or release your new service by at first only routing a small percentage of user traffic, say 1%, to v1.1, then shifting all of your traffic over time to the new service.

Image by:

(Bobur Umurzokov, CC BY-SA 4.0)

Explore the open source cloud Free online course: Developing cloud-native applications with microservices eBook: Modernize your IT with managed cloud services Try for 60 days: Red Hat OpenShift Dedicated Free online course: Containers, Kubernetes and Red Hat OpenShift What is Kubernetes? Understanding edge computing Latest articles for IT architects

This allows you to monitor the new service, look for technical problems, such as increased latency or error rates, and look for the desired business impact. This includes checking for an increase in key performance indicators like customer conversion ratio or the average shopping checkout value. Traffic splitting enables you to run A/B or multivariate tests by dividing traffic destined for a target service between multiple versions of the service. For example, you can split traffic 50/50 across your v1.0 and v1.1 of the target service and see which performs better over a specific period of time. Learn more about the traffic split feature in Apache APISIX Ingress Controller.

When appropriate, canary releases are an excellent option, as the percentage of traffic exposed to the canary is highly controlled. The trade-off is that the system must have good monitoring in place to be able to quickly identify an issue and roll back if necessary (which can be automated). This guide shows you how to use Apache APISIX and Flagger to quickly implement a canary release solution.

Image by:

(Bobur Umurzokov, CC BY-SA 4.0)

Traffic mirroring

In addition to using traffic splitting to run experiments, you can also use traffic mirroring to copy or duplicate traffic. You can send this to an additional location or a series of locations. Frequently with traffic mirroring, the results of the duplicated requests are not returned to the calling service or end user. Instead, the responses are evaluated out-of-band for correctness. For instance, it compares the results generated by a refactored and existing service.

Image by:

(Bobur Umurzokov, CC BY-SA 4.0)

Using traffic mirroring enables you to "dark release" services, where a user is kept in the dark about the new release, but you can internally observe for the required effect.

Implementing traffic mirroring at the edge of systems has become increasingly popular over the years. APISIX offers the proxy-mirror plugin to mirror client requests. It duplicates the real online traffic to the mirroring service and enables specific analysis of the online traffic or request content without interrupting the online service.

What is a blue green deployment?

Blue green deployment is usually implemented at a point in the architecture that uses a router, gateway, or load balancer. Behind this sits a complete blue environment and a green environment. The current blue environment represents the current live environment, and the green environment represents the next version of the stack. The green environment is checked prior to switching to live traffic. When it goes live, the traffic is flipped over from blue to green. The blue environment is now off, but if a problem is spotted the rollback is quick. The next change is to go from green to blue, oscillating from the first release onward.

Image by:

(Bobur Umurzokov, CC BY-SA 4.0)

Blue green works well due to its simplicity, and it is one of the better deployment options for coupled services. It is also easier to manage persisting services, though you still need to be careful in the event of a rollback. It also requires double the number of resources to be able to run cold in parallel to the currently active environment.

Traffic management with Argo Rollouts

The strategies discussed add a lot of value, but the rollout itself is a task that you would not want to have to manage manually. This is where a tool such as Argo Rollouts is valuable for demonstrating some of the concerns discussed.

Using Argo, it is possible to define a Rollout CRD that represents the strategy you can take for rolling out a new canary of your API. A custom resource definition (CRD) allows Argo to extend the Kubernetes API to support rollout behavior. CRDs are a popular pattern with Kubernetes. They allow the user to interact with one API with the extension to support different features.

You can use the Apache APISIX and Apache APISIX Ingress Controller for traffic management with Argo Rollouts. This guide shows you how to integrate ApisixRoute with Argo Rollouts using it as a weighted round-robin load balancer.

Summary

The ability to separate the deployment and release of service (and corresponding API) is a powerful technique, especially with the rise in the progressive delivery approach. A canary release service can make use of the API gateway traffic split and mirroring features, and provides a competitive advantage. This helps your business with both mitigating risk of a bad release and also understanding your customer's requirements.

This article was originally published on the API7.ai blog and has been republished with permission.

The ability to separate the deployment and release of service (and corresponding API) is a powerful technique, especially with the rise in the progressive delivery approach.

Image by:

opensource.com

CI/CD Kubernetes Cloud What to read next This work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License. Register or Login to post a comment.

4 Useful Commands to Clear Linux Terminal Screen

Tecmint - Mon, 02/06/2023 - 14:45
The post 4 Useful Commands to Clear Linux Terminal Screen first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Just like any other operating system, Linux also supports a rich Graphical User interface (GUI). In fact, it supports multiple graphical desktop environments such as – GNOME, KDE, Cinnamon, and the list goes on.

The post 4 Useful Commands to Clear Linux Terminal Screen first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

MythTV 33 Released For Improving This Popular HTPC/PVR Open-Source Software

Phoronix - Mon, 02/06/2023 - 13:00
Even with local digital video recording from your antenna or cable being far less common these days than a decade prior, in the era of Internet streaming the open-source MythTV software continues making progress for this dominant Linux solution for HTPC/PVR needs...

Pages